public void Dispose() { if (_disposed) { return; } _disposed = true; _notifications?.Clear(); _notifications = null; }
public void Dispose() { if (_disposed) { return; } _disposed = true; _interval?.Stop(); _interval = null; _notifications?.Clear(); _notifications = null; _notificationsPending?.Clear(); }
protected virtual void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { _notifications?.Clear(); _notifications = null; } _disposed = true; }
protected virtual void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { _interval?.Stop(); _interval = null; _notifications?.Clear(); _notifications = null; _notificationsPending?.Clear(); } _disposed = true; }