PayloadSender.SendPayload Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
override this.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.