Пример #1
0
 public void PauseStream()
 {
     if (_currentStreamTask != null)
     {
         _currentStreamTask.Pause();
     }
 }
Пример #2
0
 public void PauseStream()
 {
     lock (_lockStream)
     {
         _currentStreamTask?.Pause();
     }
 }