ภาษา

IPayloadReceiver Interface

Definition

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

public interface IPayloadReceiver
type IPayloadReceiver = interface
Public Interface IPayloadReceiver
Derived

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.

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