C# Class System.Net.Http.WinHttpResponseStream

Inheritance: System.IO.Stream
Mostrar archivo Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
CopyToAsync ( Stream destination, int bufferSize, CancellationToken cancellationToken ) : Task
Flush ( ) : void
FlushAsync ( CancellationToken cancellationToken ) : Task
Read ( byte buffer, int offset, int count ) : int
ReadAsync ( byte buffer, int offset, int count, CancellationToken token ) : Task
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
CancelPendingResponseStreamReadOperation ( ) : void
CheckDisposed ( ) : void
CopyToAsyncCore ( Stream destination, byte buffer, CancellationToken cancellationToken ) : Task
ReadAsyncCore ( byte buffer, int offset, int count, CancellationToken token ) : Task
WinHttpResponseStream ( Interop.WinHttp.SafeWinHttpHandle requestHandle, WinHttpRequestState state ) : System.Buffers

Method Details

CopyToAsync() public method

public CopyToAsync ( Stream destination, int bufferSize, CancellationToken cancellationToken ) : Task
destination System.IO.Stream
bufferSize int
cancellationToken System.Threading.CancellationToken
return Task

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Flush() public method

public Flush ( ) : void
return void

FlushAsync() public method

public FlushAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
return Task

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

ReadAsync() public method

public ReadAsync ( byte buffer, int offset, int count, CancellationToken token ) : Task
buffer byte
offset int
count int
token System.Threading.CancellationToken
return Task

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void