<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.4" />

PushStreamContent

Provides an HttpContent implementation that exposes an output Stream which can be written to directly. The ability to push data to the output stream differs from the StreamContent where data is pulled and not pushed.

Initializes a new instance of the PushStreamContent class. The onStreamAvailable action is called when an output stream has become 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.

Initializes a new instance of the PushStreamContent class.

public PushStreamContent(Action<Stream, HttpContent, TransportContext> onStreamAvailable, string mediaType)

Initializes a new instance of the PushStreamContent class with the given media type.

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

Initializes a new instance of the PushStreamContent class with the given media type.

Initializes a new instance of the PushStreamContent class with the given MediaTypeHeaderValue.

Initializes a new instance of the PushStreamContent class with the given MediaTypeHeaderValue.