Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET service
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 28-Dec-11 10:46am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
wonder-FOOL at 28-Dec-11 17:28pm
thanks John. I appreciate it.
Espen Harlinn at 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)

  Print Answers RSS
0 OriginalGriff 520
1 Maciej Los 205
2 Suvendu Shekhar Giri 159
3 Peter Leow 140
4 Kornfeld Eliyahu Peter 133
0 Sergey Alexandrovich Kryukov 9,623
1 OriginalGriff 8,895
2 Peter Leow 5,044
3 Kornfeld Eliyahu Peter 3,333
4 Maciej Los 2,561

Advertise | Privacy | Mobile
Web03 | 2.8.150327.1 | Last Updated 28 Dec 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100