Del via


IPayloadReceiver.Subscribe Method

Definition

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

public void Subscribe (Func<Microsoft.Bot.Streaming.Payloads.Header,System.IO.Stream> getStream, Action<Microsoft.Bot.Streaming.Payloads.Header,System.IO.Stream,int> receiveAction);
abstract member Subscribe : Func<Microsoft.Bot.Streaming.Payloads.Header, System.IO.Stream> * Action<Microsoft.Bot.Streaming.Payloads.Header, System.IO.Stream, int> -> unit
Public Sub Subscribe (getStream As Func(Of Header, Stream), receiveAction As Action(Of Header, Stream, Integer))

Parameters

getStream
Func<Header,Stream>

The function executed to attach to the specified Stream.

receiveAction
Action<Header,Stream,Int32>

The function to execute when new data is received from the attached Stream.

Applies to