Click here to Skip to main content
15,879,239 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

1 solution

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.
 
Share this answer
 
v2
Comments
wonder-FOOL 28-Dec-11 17:28pm    
thanks John. I appreciate it.
Espen Harlinn 30-Dec-11 9:11am    
Good reply :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900