Microsoft.Http.StreamExtensions.ConsumeAllBytesAndClose C# (CSharp) Method

ConsumeAllBytesAndClose() public static method

public static ConsumeAllBytesAndClose ( this stream ) : long
stream this
return long
        public static long ConsumeAllBytesAndClose(this Stream stream)
        {
            if (drainBuffer == null)
            {
                drainBuffer = new byte[maxSize];
            }

            return stream.CopyAndCloseSource(null, null);
        }