protected override void Dispose(bool disposing) { if (disposing && !closed) { closed = true; entry.Length = writtenBytes; if (isSeparate) { @delegate.Dispose(); // we are a separate file - push into the pending entries outerInstance.pendingEntries.AddLast(entry); } else { // we have been written into the CFS directly - release the lock outerInstance.ReleaseOutputLock(); } // now prune all pending entries and push them into the CFS outerInstance.PrunePendingEntries(); } }
public override void Dispose() { if (!Closed) { Closed = true; Entry.Length = WrittenBytes; if (IsSeparate) { @delegate.Dispose(); // we are a separate file - push into the pending entries OuterInstance.PendingEntries.AddLast(Entry); } else { // we have been written into the CFS directly - release the lock OuterInstance.ReleaseOutputLock(); } // now prune all pending entries and push them into the CFS OuterInstance.PrunePendingEntries(); } }