Example #1
0
 public void Dispose()
 {
     Debug.Assert(accumulatedMessages.Length == 0, "Messages must be discarded or flushed before invoking Dispose.");
     if (disposalCallback != null)
     {
         disposalCallback();
     }
     disposalCallback = null;
 }
Example #2
0
 public LogAccumulator(ILogWriter supersededWriter, DisposalCallback disposalCallback)
 {
     SupersededWriter      = supersededWriter;
     this.disposalCallback = disposalCallback;
 }