C# Class System.Net.Http.NoWriteNoSeekStreamContent

Provides an HttpContent for a Stream that is inherently read-only without support for writing or seeking.
Same as StreamContent, but specialized for no-write, no-seek, and without being constrained by its public API.
Inheritance: HttpContent
Mostra file Open project: dotnet/corefx Class Usage Examples

Protected Methods

Method Description
CreateContentReadStreamAsync ( ) : Task
Dispose ( bool disposing ) : void
SerializeToStreamAsync ( Stream stream, TransportContext context ) : Task
TryComputeLength ( long &length ) : bool

Private Methods

Method Description
NoWriteNoSeekStreamContent ( Stream content, CancellationToken cancellationToken ) : System.Diagnostics

Method Details

CreateContentReadStreamAsync() protected method

protected CreateContentReadStreamAsync ( ) : Task
return Task

Dispose() protected method

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

SerializeToStreamAsync() protected method

protected SerializeToStreamAsync ( Stream stream, TransportContext context ) : Task
stream System.IO.Stream
context TransportContext
return Task

TryComputeLength() protected method

protected TryComputeLength ( long &length ) : bool
length long
return bool