在ASP.Net项目中包括Win服务 [英] Including a win service in ASP.Net project

查看:54
本文介绍了在ASP.Net项目中包括Win服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个网站,并且需要向该网站添加Windows服务以定期执行一些处理.是否可以集成这样的东西?

我在想的是将此服务包含在我的ASP.Net项目中.
我将创建一个将用作配置页的网页.在该页面上,我将更改赢得服务的间隔,即发送电子邮件的频率..等等.在此页面上进行更改时,数据库将被更新.该服务将从数据库中读取这些值,并根据这些值将完成任务,或者我可以在缓存中添加条目并设置绝对到期日期时间,或者设置从缓存中删除项目以计划之后的持续时间此网络服务.

这是集成此功能的好方法还是实现此功能的任何其他更好的方法?一些示例链接将非常有帮助.非常感谢.

Hello all,

I have a web site and to this site I need to add a windows service to do some processes periodically. Is it possible to integrate something like this?

What I am thinking is including this service within my ASP.Net project.
I will create a web page which will be working as a configuration page. From that page i will change the win service interval how often it will send emails.. etc. When changes made in this page the database will be updated. The service will read these values from the database and depending on the values it will complete the tasks or I can add entries in the Cache and set an absolute expiry date time, or set a duration after which the item is removed from the cache to schedule this web service.

Is this a good way to integrate this functionality or any other better ways to implement this? Some example links will be really helpful. Thanks a lot.

推荐答案

您不能真正将Windows服务与网页集成在一起,但是使用数据库指定服务所使用的数据无疑是必不可少的.可行,这也是我会做到的方式.
You can''t really integrate a Windows service with a web page, but using a database to specify the data used by the service is certainly viable, and is the way i would do it.


这篇关于在ASP.Net项目中包括Win服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆