public void Dispose()
 {
     if (!_disposed)
     {
         _disposed = true;
         _manager.Stop();
         _manager.Dispose();
     }
 }
示例#2
0
 private void DisposePlayToManager()
 {
     lock (_syncLock)
     {
         if (_manager != null)
         {
             try
             {
                 _manager.Dispose();
             }
             catch (Exception ex)
             {
                 _logger.ErrorException("Error disposing PlayTo manager", ex);
             }
             _manager = null;
         }
     }
 }