Delen via


DialogContext Klas

Definitie

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
Overname
DialogContext
Implementeringen

Constructors

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

Expliciete interface-implementaties

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>)

Extensiemethoden

EndConversation(IDialogContext, String)

Start een EndConversationEvent om de status van het gesprek opnieuw in te stellen en een te stapelen en naar EndOfConversation de connector te verzenden.

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

Een onderliggend dialoogvenster aanroepen, toevoegen aan de bovenkant van de stapel en het bericht posten in het dialoogvenster onderliggend.

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

Plaats een bericht dat naar de gebruiker moet worden verzonden, waarbij u eerdere berichten gebruikt om een gesprekscontext tot stand te brengen.

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

Plaats een bericht en optionele SSML om naar de gebruiker te worden verzonden, met behulp van eerdere berichten om een gesprekscontext tot stand te brengen.

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

Het huidige dialoogvenster onderbreken totdat de gebruiker een bericht naar de bot heeft verzonden.

Van toepassing op