예제 #1
0
        public void Pause()
        {
            if (!Running.IsCompleted)
            {
                throw new InvalidOperationException("Service was not running but is being paused");
            }

            Paused.Complete(true);
        }
예제 #2
0
 public void OnPause()
 {
     Paused.Complete(true);
 }