Partilhar via


IPayloadReceiver.Subscribe Método

Definição

Define os comportamentos utilizados para anexar a um especificado Stream e ao receber dados no referido 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))

Parâmetros

getStream
Func<Header,Stream>

A função executada para anexar ao especificado Stream.

receiveAction
Action<Header,Stream,Int32>

A função a executar quando são recebidos novos dados do .Stream

Aplica-se a