/// <summary> /// Starts this instance, delegates to scheduler. /// </summary> public virtual void Start() { try { QuartzHelper.StartSchedule(); } catch (Exception ex) { logger.Fatal(string.Format("Scheduler start failed: {0}", ex.Message), ex); throw; } logger.Info("Scheduler started successfully"); }
/// <summary> /// Starts this instance, delegates to scheduler. /// </summary> public virtual void Start() { try { QuartzHelper.StartSchedule(); } catch (Exception ex) { LogHelper.ServerError(string.Format("服务启动失败: {0}", ex.Message), ex); throw; } LogHelper.ServerInfo("作业启动成功"); }