protected virtual void Release() { if (Interlocked.Decrement(ref _count) == 0) { _parent.RemoveArtifact(_streamUri); } }
void IDisposable.Dispose() { base.Dispose(); _parent.RemoveArtifact(_streamUri); }