/1[], TransportContext>, )
Initializes a new instance of the PushStreamContent class.
Namespace: System.Net.Http
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Public Sub New ( _
onStreamAvailable As Action(Of Stream, HttpContent, TransportContext), _
mediaType As MediaTypeHeaderValue _
)
'Usage
Dim onStreamAvailable As Action(Of Stream, HttpContent, TransportContext)
Dim mediaType As MediaTypeHeaderValue
Dim instance As New PushStreamContent(onStreamAvailable, _
mediaType)
public PushStreamContent(
Action<Stream, HttpContent, TransportContext> onStreamAvailable,
MediaTypeHeaderValue mediaType
)
public:
PushStreamContent(
Action<Stream^, HttpContent^, TransportContext^>^ onStreamAvailable,
MediaTypeHeaderValue^ mediaType
)
new :
onStreamAvailable:Action<Stream, HttpContent, TransportContext> *
mediaType:MediaTypeHeaderValue -> PushStreamContent
public function PushStreamContent(
onStreamAvailable : Action<Stream, HttpContent, TransportContext>,
mediaType : MediaTypeHeaderValue
)
Parameters
onStreamAvailable
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.
mediaType
Type: MediaTypeHeaderValueThe media type.
Remarks
When the stream is closed, it will signal to the content that is has completed and the HTTP request or response will be completed.