I am using ASP.Net and C#. I want to synchronise something on a particular time. I made a method for doing this and it’s working. But my problem is how to call this method daily at a particular time.
Client doesn’t trust any third party tool, so can’t use it.
Windows service is not a good solution.
If I make a web service, how should I call it at a particular time on a daily basis?
For example, I want to run method everyday at 07.00 PM.
At startup, add an item to the HttpRuntime.Cache with a fixed expiration.
When cache item expires, do your work, such as WebRequest or what have you.
Re-add the item to the cache with a fixed expiration.