IPayloadSender.SendPayload Method

Definition

Begins the process of writing the given payload to the outgoing Stream and sets the callback to trigger when complete.

public void SendPayload (Microsoft.Bot.Streaming.Payloads.Header header, System.IO.Stream payload, bool isLengthKnown, Func<Microsoft.Bot.Streaming.Payloads.Header,System.Threading.Tasks.Task> sentCallback);
abstract member SendPayload : Microsoft.Bot.Streaming.Payloads.Header * System.IO.Stream * bool * Func<Microsoft.Bot.Streaming.Payloads.Header, System.Threading.Tasks.Task> -> unit
Public Sub SendPayload (header As Header, payload As Stream, isLengthKnown As Boolean, sentCallback As Func(Of Header, Task))

Parameters

header
Header

The Header to write to the outgoing PayloadStream.

payload
Stream

The Stream containing the data to write to the outgoing PayloadStream.

isLengthKnown
Boolean

True if the stream length is known, otherwise false.

sentCallback
Func<Header,Task>

The function to trigger once the send operation is complete.

Applies to