DialogContext Class

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
Inheritance
DialogContext
Implements

Constructors

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

Explicit Interface Implementations

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

Extension Methods

EndConversation(IDialogContext, String)

Initiate an EndConversationEvent to reset the conversation's state and stack and send an EndOfConversation to the Connector.

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

Call a child dialog, add it to the top of the stack and post the message to the child dialog.

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

Post a message to be sent to the user, using previous messages to establish a conversation context.

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

Post a message and optional SSML to be sent to the user, using previous messages to establish a conversation context.

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

Suspend the current dialog until the user has sent a message to the bot.

Applies to