PayloadSender Class

Definition

On Send: queues up sends and sends them along the transport. On Receive: receives a packet header and some bytes and dispatches it to the subscriber.

public class PayloadSender : IDisposable, Microsoft.Bot.Streaming.PayloadTransport.IPayloadSender
type PayloadSender = class
    interface IPayloadSender
    interface IDisposable
Public Class PayloadSender
Implements IDisposable, IPayloadSender
Inheritance
PayloadSender
Implements

Constructors

PayloadSender()

Initializes a new instance of the PayloadSender class.

Properties

IsConnected

Gets a value indicating whether the PayloadSender is currently connected to an ITransportSender.

Methods

Connect(ITransportSender)

Connects the PayloadSender to the passed in ITransportSender.

Disconnect(DisconnectedEventArgs)

Disconnects the PayloadSender from its ITransportSender.

Dispose()

Disposes the object and releases any related objects owned by the class.

Dispose(Boolean)

Disposes objected used by the class.

SendPayload(Header, Stream, Boolean, Func<Header,Task>)

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

Events

Disconnected

Emitted when the PayloadSender becomes disconneced from the ITransportSender.

Applies to