IPayloadReceiver Interface
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.
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
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. |
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. |