Reputation: 3
I have several WCF services and I want to execute methods in them at specific intervals.
For example, call Service1.DoSomeWork every 5 minutes and Service2.DoSomeWork every 10 minutes. I also want Windows client applications to be able to call the DoSomeWork methods at any time.
What is the best way to implement this?
I have complete control over the server so using Scheduled Tasks is possible but I wonder if using a Workflow in AppFabric is better or using a timer in the service itself?
Upvotes: 0
Views: 4884
Reputation: 10390
Check out this post. I answered a question a while ago where the developer want to "Do something" at an interval in a windows service. I gave a pretty detailed code sample for scheduling activity within a Windows Service as recommended by other posted earlier in this thread.
how to make service act dynamically based on service running condition
Upvotes: 1
Reputation: 4294
If I were your ,
I create a windows service in the server .
So that I can do anything at specific intervals....
Upvotes: 0
Reputation: 715
I'm not familiar with AppFabric but if I were you, I will use the timer since your requirement sounds simple.
Upvotes: 0