Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var properties = new NameValueCollection();
- properties["quartz.threadPool.threadCount"] = "1";
- var schedFact = new StdSchedulerFactory(properties);
- .
- .
- .
- internal class SendDataToServer : IJob
- {
- public void Execute(IJobExecutionContext context)
- {
- int a = 1;
- Thread.Sleep(some amount bigger than scheduled job time);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment