Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

PushStreamContent Constructor (Action<Stream, HttpContent, TransportContext>, String)

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(
	Action<Stream, HttpContent, TransportContext> onStreamAvailable,
	string mediaType


Type: System.Action<Stream, HttpContent, TransportContext>
An action that is called when an output stream is available, allowing the action to write to it directly.
Type: System.String
The media type.

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

© 2015 Microsoft