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

            Paused.Complete(true);
        }
 public void OnPause()
 {
     Paused.Complete(true);
 }