Mennan
Mennan

Reputation: 4497

How can execute a function in every minute in windows service?

I want to best practise for this job.What is the best solution for run a function in every x minutes.

using a timer or thread ?

thx for your helps.

Upvotes: 1

Views: 475

Answers (1)

Erwin
Erwin

Reputation: 4817

You can use a Timer or make use of Quartz.net. Quartz.NET is an open source job scheduling system.

On the site there is a Tutorial, for you feature you can use a SimpleTrigger.

Upvotes: 2

Related Questions