PushStreamContent Constructor (Func<Stream, HttpContent, TransportContext, Task>)

Initializes a new instance of the PushStreamContent class.

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

public PushStreamContent(
	Func<Stream, HttpContent, TransportContext, Task> onStreamAvailable
)

Parameters

onStreamAvailable
Type: System.Func<Stream, HttpContent, TransportContext, Task>
An action that is called when an output stream is available, allowing the action to write to it directly.

When the stream is closed, it will signal to the content that is has completed and the HTTP request or response will be completed.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft