PayloadSender Class
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.
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. |