Beispiel #1
0
 /// <summary>
 /// 暂停
 /// </summary>
 public async Task PauseAsync()
 {
     if (_scheduler == null)
     {
         return;
     }
     await _scheduler.PauseAll();
 }
Beispiel #2
0
 public virtual void Pause()
 {
     scheduler.PauseAll();
 }
 public void Dispose()
 {
     Scheduler.PauseAll();
     Scheduler.Shutdown(false);
 }
 protected override void OnPause()
 {
     scheduler.PauseAll();
 }