public void RelinquishBuffer(NamedMemoryStream stream) { if (stream == null) { throw new ArgumentNullException(nameof(stream)); } OnRelinquishBuffer(stream); }
protected override void OnRelinquishBuffer(NamedMemoryStream stream) { _bufferPool.Release(stream); }
protected abstract void OnRelinquishBuffer(NamedMemoryStream stream);