/// <summary> /// 订阅 Job /// </summary> public void Subscribe() { if (JobSwitch.GetStatus()) { this.Handle(); } }
/// <summary> /// 启动 Job /// </summary> public static void Start() { IJobClient jobClient = new JobClient(); jobClient.Start(); // 设置 Job 状态 JobSwitch.Run(); JobPause(); }
static void JobPause() { JobSwitch.Pause(); }