Del via


PayloadReceiver Class

Definition

PayloadReceivers subscribe to incoming streams and manage the consumption of raw data as it comes in.

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

Constructors

PayloadReceiver()

Initializes a new instance of the PayloadReceiver class.

Properties

IsConnected

Gets a value indicating whether the PayloadReceiver is currently connected to an ITransportReceiver.

Methods

Connect(ITransportReceiver)

Connects the PayloadReceiver to the passed in ITransportReceiver.

Disconnect(DisconnectedEventArgs)

Disconnects the PayloadReceiver from its ITransportReceiver.

Dispose()

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

Dispose(Boolean)

Disposes objected used by the class.

Subscribe(Func<Header,Stream>, Action<Header,Stream,Int32>)

Sets the behaviors used to attach to a specified Stream and on receiving data on said Stream.

Events

Disconnected

Emitted when the PayloadReceiver becomes disconneced from the ITransportReceiver.

Applies to