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