Język

WebexAdapter.ContinueConversationAsync Metoda

Definicja

Przeciążenia

Nazwa Opis
ContinueConversationAsync(ConversationReference, BotCallbackHandler, CancellationToken)

Standardowa metoda adaptacji BotBuilder do kontynuowania istniejącej rozmowy na podstawie odniesienia do rozmowy.

ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken)

Wysyła proaktywną wiadomość od bota do rozmowy.

ContinueConversationAsync(ConversationReference, BotCallbackHandler, CancellationToken)

Standardowa metoda adaptacji BotBuilder do kontynuowania istniejącej rozmowy na podstawie odniesienia do rozmowy.

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

Parametry

reference
ConversationReference

A ConversationReference do przyszłych wiadomości.

logic
BotCallbackHandler

Funkcja logiczna bota, która będzie wykonywać ciągłe działania.

cancellationToken
CancellationToken

Token anulujący za to zadanie.

Zwraca

Reprezentująca Task operację asynchroniczną.

Dotyczy

ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken)

Wysyła proaktywną wiadomość od bota do rozmowy.

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łania wynikowego bota.

cancellationToken
CancellationToken

Token anulowania.

Zwraca

Zadanie reprezentujące pracę w kolejce do wykonania.

Uwagi

Wywołaj tę metodę, aby proaktywnie wysłać wiadomość do konwersacji. Większość _channels wymaga, aby użytkownik zainicjował rozmowę z botem, zanim bot będzie mógł wysłać aktywności do użytkownika.

Ta metoda rejestruje następujące serwisy dla obrotu.

  • IIdentity (key = "BotIdentity"), a zgłasza claimsIdentity bota.

Zobacz też

Dotyczy