protected override void Dispose(bool disposing) { if (Disposed) { return; } StreamDisposed.Invoke(null, EventArgs.Empty); Disposed = true; base.Dispose(disposing); }
internal void ReportStreamDisposed() { Counter.ReportStreamDisposed(); StreamDisposed?.Invoke(); }
internal void ReportStreamDisposed() => StreamDisposed?.Invoke();