IPayloadReceiver.Subscribe Method
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.
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
The function to execute when new data is received from the attached Stream.