Reputation: 147
I am looking to do an action on every day at a particular time like triggers in sql, but here i am looking to do this in c#.net, can any one please help me,
Thanks
Upvotes: 0
Views: 629
Reputation: 30175
In general you are creating loop and then check if it's time for your action. It should be alwasy running process (service, or application in tray, etc).
It depends on how clear you need to be in your timer: if it needs to be second in second you need to create interval in 1 second and in Elapsed
handler check you target time with current one, if true - fire alarm (event).
Upvotes: 2