protected virtual void Dispose(bool disposing) { if (_disposed) { return; } Bus?.Dispose(); _disposed = true; }
protected virtual void Dispose(bool disposing) { if (_disposed) { return; } _subscription?.Dispose(); _bus?.Dispose(); _disposed = true; }
protected virtual void Dispose(bool disposing) { if (_disposed) { return; } _liveLock.Set(); _subscription?.Dispose(); Bus?.Dispose(); _disposed = true; }
protected virtual void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { lock (_listeners) { _listeners?.ForEach(l => l?.Dispose()); } _queue?.RequestStop(); _bus?.Dispose(); } _disposed = true; }