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

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

Explizite Schnittstellenimplementierungen

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

EndConversation(IDialogContext, String)

Initiieren Sie eine EndConversationEvent , um den Zustand und Stapel der Unterhaltung zurückzusetzen und eine EndOfConversation an den Connector zu senden.

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

Rufen Sie ein untergeordnetes Dialogfeld auf, fügen Sie es oben im Stapel hinzu, und posten Sie die Nachricht im untergeordneten Dialogfeld.

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

Posten Sie eine Nachricht, die an den Benutzer gesendet werden soll, und verwenden Sie dabei vorherige Nachrichten, um einen Konversationskontext einzurichten.

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

Posten Sie eine Nachricht und optional SSML, die an den Benutzer gesendet werden soll, und verwenden Sie dabei vorherige Nachrichten, um einen Konversationskontext einzurichten.

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

Anhalten des aktuellen Dialogfelds, bis der Benutzer eine Nachricht an den Bot gesendet hat.

Gilt für: