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

Constructors

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

Explicit Interface Implementations

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

Extension Methods

EndConversation(IDialogContext, String) EndConversation(IDialogContext, String) 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) Forward<R>(IDialogStack, IDialog<R>, ResumeAfter<R>, IMessageActivity, CancellationToken) 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) GetSignInUrlAsync(IDialogContext, String) GetSignInUrlAsync(IDialogContext, String)
GetUserTokenAsync(IDialogContext, String) GetUserTokenAsync(IDialogContext, String) GetUserTokenAsync(IDialogContext, String)
GetUserTokenAsync(IDialogContext, String, String) GetUserTokenAsync(IDialogContext, String, String) GetUserTokenAsync(IDialogContext, String, String)
PostAsync(IBotToUser, String, String, CancellationToken) PostAsync(IBotToUser, String, String, CancellationToken) 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) SayAsync(IBotToUser, String, String, MessageOptions, String, CancellationToken) 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) SignOutUserAsync(IDialogContext, String) SignOutUserAsync(IDialogContext, String)
Wait(IDialogStack, ResumeAfter<IMessageActivity>) Wait(IDialogStack, ResumeAfter<IMessageActivity>) Wait(IDialogStack, ResumeAfter<IMessageActivity>)

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

Applies to