예제 #1
0
 /// <summary>
 /// 订阅 Job
 /// </summary>
 public void Subscribe()
 {
     if (JobSwitch.GetStatus())
     {
         this.Handle();
     }
 }
예제 #2
0
        /// <summary>
        /// 启动 Job
        /// </summary>
        public static void Start()
        {
            IJobClient jobClient = new JobClient();

            jobClient.Start();

            // 设置 Job 状态
            JobSwitch.Run();
            JobPause();
        }
예제 #3
0
 static void JobPause()
 {
     JobSwitch.Pause();
 }