Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
SQL
I have a requirement where I want to implement a WCF Service which checks a status from a Database column after a certain time interval lets say 20 minuets, if this status is true I want to execute some operation else some other operation. So is it possible to implement the desired functionality using WCF Service, If yes please guide me how should I implement, As I have no idea how to do it.

If its is not possible, then please suggest me some good options like (Web Services, windows service etc.). Please provide me sample code or some good links where I can find the way to approach this problem. I want this service to run on my PC always and check status after 10-20 minuets. I am more comfortable with C#, So If it could be done in C# its well and good. Otherwise also not an issue. I have windows PC
Posted

1 solution

You're using the wrong approach. Web Services are meant for on-demand use, while window services and scheduled tasks should be used for periodic activities. Move the necessary code out of the web service into a DLL and then either create a Windows Service with a Timer or you can use a console app that is scheduled through Scheduled Tasks.
 
Share this answer
 

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