示例#1
0
 public void Stop()
 {
     //停止任务调度
     QuartzHelper.StopSchedule();
     //系统终止
     System.Environment.Exit(0);
 }
示例#2
0
 protected override void OnStop()
 {
     QuartzHelper.StopSchedule();
     //回收资源
     Startup.Dispose();
     System.Environment.Exit(0);
 }
示例#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");
        }
示例#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("作业停止完成");
        }
示例#5
0
        public void Stop()
        {
            QuartzHelper.StopSchedule();

            System.Environment.Exit(0);
        }
 protected override void OnStop()
 {
     QuartzHelper.StopSchedule();
     System.Environment.Exit(0);
 }
示例#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);
 }