ภาษา

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

Name Description
PayloadReceiver()

Initializes a new instance of the PayloadReceiver class.

Properties

Name Description
IsConnected

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

Methods

Name Description
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

Name Description
Disconnected

Emitted when the PayloadReceiver becomes disconneced from the ITransportReceiver.

Applies to