Udostępnij za pośrednictwem


BotFrameworkAdapter.ContinueConversationAsync Metoda

Definicja

Przeciążenia

ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken)

Wysyła proaktywny komunikat z bota do konwersacji.

ContinueConversationAsync(String, ConversationReference, BotCallbackHandler, CancellationToken)

Wysyła proaktywny komunikat z bota do konwersacji.

ContinueConversationAsync(ClaimsIdentity, ConversationReference, String, BotCallbackHandler, CancellationToken)

Wysyła proaktywny komunikat z bota do konwersacji.

ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken)

Wysyła proaktywny komunikat z bota do konwersacji.

public override System.Threading.Tasks.Task ContinueConversationAsync (System.Security.Claims.ClaimsIdentity claimsIdentity, Microsoft.Bot.Schema.ConversationReference reference, Microsoft.Bot.Builder.BotCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
override this.ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Bot.Schema.ConversationReference * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function ContinueConversationAsync (claimsIdentity As ClaimsIdentity, reference As ConversationReference, callback As BotCallbackHandler, cancellationToken As CancellationToken) As Task

Parametry

claimsIdentity
ClaimsIdentity

A ClaimsIdentity do rozmowy.

reference
ConversationReference

Odwołanie do konwersacji, aby kontynuować.

callback
BotCallbackHandler

Metoda wywołująca wynikowy obrót bota.

cancellationToken
CancellationToken

Token anulowania.

Zwraca

Zadanie reprezentujące wykonaną pracę w kolejce.

Uwagi

Wywołaj tę metodę, aby proaktywnie wysłać wiadomość do konwersacji. Większość _channels wymaga od użytkownika zainicjowania konwersacji z botem, zanim bot będzie mógł wysyłać działania do użytkownika.

Ta metoda rejestruje następujące usługi na kolei.

  • IIdentity (key = "BotIdentity"), oświadczenia oświadczeniaIdentity dla bota.
  • IConnectorClient, klient łącznika kanału do korzystania z tej kolei.

Zobacz też

Dotyczy

ContinueConversationAsync(String, ConversationReference, BotCallbackHandler, CancellationToken)

Wysyła proaktywny komunikat z bota do konwersacji.

public override System.Threading.Tasks.Task ContinueConversationAsync (string botAppId, Microsoft.Bot.Schema.ConversationReference reference, Microsoft.Bot.Builder.BotCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
override this.ContinueConversationAsync : string * Microsoft.Bot.Schema.ConversationReference * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function ContinueConversationAsync (botAppId As String, reference As ConversationReference, callback As BotCallbackHandler, cancellationToken As CancellationToken) As Task

Parametry

botAppId
String

Identyfikator aplikacji bota. Jest to identyfikator appId zwrócony przez rejestrację w portalu i zazwyczaj znajduje się w parametrze "MicrosoftAppId" w pliku appSettings.json.

reference
ConversationReference

Odwołanie do konwersacji, aby kontynuować.

callback
BotCallbackHandler

Metoda wywołująca wynikowy obrót bota.

cancellationToken
CancellationToken

Token anulowania.

Zwraca

Zadanie reprezentujące wykonaną pracę w kolejce.

Implementuje

Wyjątki

botAppId, referencelub callback to null.

Uwagi

Wywołaj tę metodę, aby proaktywnie wysłać wiadomość do konwersacji. Większość _channels wymaga od użytkownika zainicjowania konwersacji z botem, zanim bot będzie mógł wysyłać działania do użytkownika.

Ta metoda rejestruje następujące usługi na kolei.

  • IIdentity (key = "BotIdentity"), oświadczenia oświadczeniaIdentity dla bota.
  • IConnectorClient, klient łącznika kanału do korzystania z tej kolei.

To przeciążenie różni się od implementacji węzła, wymagając przekazania identyfikatora BotId. Kod platformy .Net umożliwia hostowanie wielu botów w jednej karcie, która nie jest czymś obsługiwanym przez węzeł.

Zobacz też

Dotyczy

ContinueConversationAsync(ClaimsIdentity, ConversationReference, String, BotCallbackHandler, CancellationToken)

Wysyła proaktywny komunikat z bota do konwersacji.

public override System.Threading.Tasks.Task ContinueConversationAsync (System.Security.Claims.ClaimsIdentity claimsIdentity, Microsoft.Bot.Schema.ConversationReference reference, string audience, Microsoft.Bot.Builder.BotCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
override this.ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Bot.Schema.ConversationReference * string * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function ContinueConversationAsync (claimsIdentity As ClaimsIdentity, reference As ConversationReference, audience As String, callback As BotCallbackHandler, cancellationToken As CancellationToken) As Task

Parametry

claimsIdentity
ClaimsIdentity

A ClaimsIdentity do rozmowy.

reference
ConversationReference

Odwołanie do konwersacji, aby kontynuować.

audience
String

Docelowi odbiorcy łącznika.

callback
BotCallbackHandler

Metoda wywołująca wynikowy obrót bota.

cancellationToken
CancellationToken

Token anulowania.

Zwraca

Zadanie reprezentujące wykonaną pracę w kolejce.

Dotyczy