【发布时间】:2017-05-03 09:09:25
【问题描述】:
当我暂停 topshelf 服务时,如何停止或暂停 Quartz.Net?
目前在所有示例中, - 注册都在启动/停止方法之外:
factory.Service<IServiceHost>(sc =>
{
sc.ConstructUsing(s => new ServiceHost());
sc.WhenStarted((s, host) => s.Start(host));
sc.WhenStopped(s => s.Stop());
sc.WhenPaused(s => s.Pause());
sc.WhenContinued(s => s.Continue());
sc.ScheduleQuartzJob(...)
}
【问题讨论】:
-
什么反对
Scheduler.Shutdown()?
标签: service quartz.net topshelf