Exemple #1
0
        public void RelinquishBuffer(NamedMemoryStream stream)
        {
            if (stream == null)
            {
                throw new ArgumentNullException(nameof(stream));
            }

            OnRelinquishBuffer(stream);
        }
 protected override void OnRelinquishBuffer(NamedMemoryStream stream)
 {
     _bufferPool.Release(stream);
 }
Exemple #3
0
 protected abstract void OnRelinquishBuffer(NamedMemoryStream stream);