Share via


IStreamManager.OnReceive(Header, Stream, Int32) Method

Definition

Used to set the behavior of the managed PayloadStreamAssembler when data is received.

public void OnReceive (Microsoft.Bot.Streaming.Payloads.Header header, System.IO.Stream contentStream, int contentLength);
abstract member OnReceive : Microsoft.Bot.Streaming.Payloads.Header * System.IO.Stream * int -> unit
Public Sub OnReceive (header As Header, contentStream As Stream, contentLength As Integer)

Parameters

header
Header

The Header of the stream.

contentStream
Stream

The Stream to write incoming data to.

contentLength
Int32

The amount of data to write to the contentStream.

Applies to