Sprache

DialogContext Klasse

Definition

public sealed class DialogContext : Microsoft.Bot.Builder.Dialogs.IDialogContext
type DialogContext = class
    interface IDialogContext
    interface IDialogStack
    interface IBotContext
    interface IBotData
    interface IBotToUser
Public NotInheritable Class DialogContext
Implements IDialogContext
Vererbung
DialogContext
Implementiert

Konstruktoren

Name Beschreibung
DialogContext(IBotToUser, IBotData, IDialogStack, IActivity, CancellationToken)

Explizite Schnittstellenimplementierungen

Name Beschreibung
IBotContext.Activity
IBotContext.CancellationToken
IBotData.ConversationData
IBotData.FlushAsync(CancellationToken)
IBotData.LoadAsync(CancellationToken)
IBotData.PrivateConversationData
IBotData.UserData
IBotToUser.MakeMessage()
IBotToUser.PostAsync(IMessageActivity, CancellationToken)
IDialogStack.Call<R>(IDialog<R>, ResumeAfter<R>)
IDialogStack.Done<R>(R)
IDialogStack.Fail(Exception)
IDialogStack.Forward<R,T>(IDialog<R>, ResumeAfter<R>, T, CancellationToken)
IDialogStack.Frames
IDialogStack.Post<E>(E, ResumeAfter<E>)
IDialogStack.Reset()
IDialogStack.Wait<R>(ResumeAfter<R>)

Erweiterungsmethoden

Name Beschreibung
EndConversation(IDialogContext, String)

Initiiere an, EndConversationEvent um den Zustand der Konversation zurückzusetzen und zu stacken, und sende an EndOfConversation an den Connector.

Forward<R>(IDialogStack, IDialog<R>, ResumeAfter<R>, IMessageActivity, CancellationToken)

Rufe einen Kinderdialog auf, füge ihn oben im Stapel hinzu und poste die Nachricht im Kinderdialog.

GetSignInUrlAsync(IDialogContext, String)
GetUserTokenAsync(IDialogContext, String, String)
GetUserTokenAsync(IDialogContext, String)
PostAsync(IBotToUser, String, String, CancellationToken)

Posten Sie eine Nachricht, die an den Nutzer gesendet wird, und verwenden Sie vorherige Nachrichten, um den Kontext des Gesprächs herzustellen.

SayAsync(IBotToUser, String, String, MessageOptions, String, CancellationToken)

Posten Sie eine Nachricht und optional SSML, die an den Benutzer gesendet werden, wobei vorherige Nachrichten verwendet werden, um einen Gesprächskontext herzustellen.

SignOutUserAsync(IDialogContext, String)
Wait(IDialogStack, ResumeAfter<IMessageActivity>)

Pausieren Sie den aktuellen Dialog, bis der Benutzer eine Nachricht an den Bot gesendet hat.

Gilt für: