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
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes protégées

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

Private Methods

Méthode Description
NoWriteNoSeekStreamContent ( Stream content, CancellationToken cancellationToken ) : System.Diagnostics

Method Details

CreateContentReadStreamAsync() protected méthode

protected CreateContentReadStreamAsync ( ) : Task
Résultat Task

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

SerializeToStreamAsync() protected méthode

protected SerializeToStreamAsync ( Stream stream, TransportContext context ) : Task
stream System.IO.Stream
context TransportContext
Résultat Task

TryComputeLength() protected méthode

protected TryComputeLength ( long &length ) : bool
length long
Résultat bool