将quartz.net組建引入到winfrom中時,遇到個問題,關閉程式後,程序任未結束。
解決辦法:在窗體關閉時,把排程器關閉就不會存在程序了。
private void formmain_formclosing ( object sender , formclosingeventargs e )
if (scheduler.getintance()!= null )
{
scheduler.getintance().shutdown()
}
将quartz.net組建引入到winfrom中時,遇到個問題,關閉程式後,程序任未結束。
解決辦法:在窗體關閉時,把排程器關閉就不會存在程序了。
private void formmain_formclosing ( object sender , formclosingeventargs e )
if (scheduler.getintance()!= null )
{
scheduler.getintance().shutdown()
}