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