BufferedMediaTypeFormatter.ReadFromStreamAsync Method

Reads asynchronously from the buffered stream.

Namespace:  System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

public override sealed Task<Object> ReadFromStreamAsync(
	Type type,
	Stream readStream,
	HttpContent content,
	IFormatterLogger formatterLogger
)

Parameters

type
Type: System.Type

The type of the object to deserialize.

readStream
Type: System.IO.Stream

The stream from which to read.

content
Type: HttpContent

The HttpContent, if available. Can be null.

formatterLogger
Type: System.Net.Http.Formatting.IFormatterLogger

The IFormatterLogger to log events to.

Return Value

Type: System.Threading.Tasks.Task<Object>
A task object representing the asynchronous operation.

An implementation of this method should close stream upon completion.

Show: