System.Net.Http.ResponseStream.Dispose C# (CSharp) Метод

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                // Throw for further writes, but not reads.  Allow reads to drain the buffered data and then return 0 for further reads.
                _disposed = true;
                _readWaitingForData.TrySetResult(null);
            }

            base.Dispose(disposing);
        }

Usage Example

 public void Dispose()
 {
     _responseStream.Dispose();
     // Do not dispose the request, that will be disposed by the caller.
 }