Example #1
0
 public void Stop()
 {
     //停止任务调度
     QuartzHelper.StopSchedule();
     //系统终止
     System.Environment.Exit(0);
 }
Example #2
0
 protected override void OnStop()
 {
     QuartzHelper.StopSchedule();
     //回收资源
     Startup.Dispose();
     System.Environment.Exit(0);
 }
Example #3
0
        /// <summary>
        /// Stops this instance, delegates to scheduler.
        /// </summary>
        public virtual void Stop()
        {
            try
            {
                QuartzHelper.StopSchedule();
            }
            catch (Exception ex)
            {
                logger.Error(string.Format("Scheduler stop failed: {0}", ex.Message), ex);
                throw;
            }

            logger.Info("Scheduler shutdown complete");
        }
Example #4
0
        /// <summary>
        /// Stops this instance, delegates to scheduler.
        /// </summary>
        public virtual void Stop()
        {
            try
            {
                QuartzHelper.StopSchedule();
            }
            catch (Exception ex)
            {
                LogHelper.ServerError(string.Format("作业停止失败: {0}", ex.Message), ex);
                throw;
            }

            LogHelper.ServerInfo("作业停止完成");
        }
Example #5
0
        public void Stop()
        {
            QuartzHelper.StopSchedule();

            System.Environment.Exit(0);
        }
 protected override void OnStop()
 {
     QuartzHelper.StopSchedule();
     System.Environment.Exit(0);
 }
Example #7
0
 /// <summary>
 /// 具体命令执行函数
 /// </summary>
 /// <param name="args">参数</param>
 /// <returns>执行结果</returns>
 public string Excute(params string[] args)
 {
     QuartzHelper.StopSchedule();
     System.Environment.Exit(0);
     return(string.Empty);
 }