Taal

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

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

Expliciete interface-implementaties

Name Description
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

Name Description
EndConversation(IDialogContext, String)

Start een om EndConversationEvent de status van het gesprek te resetten en te stapelen en stuur een EndOfConversation naar de Connector.

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

Roep een kinddialoog, voeg het bovenaan de stapel toe en plaats het bericht in het kinddialoog.

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

Plaats een bericht dat naar de gebruiker wordt gestuurd, waarbij eerdere berichten worden gebruikt om de context van het gesprek te creëren.

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

Plaats een bericht en optioneel SSML om naar de gebruiker te sturen, waarbij eerdere berichten worden gebruikt om een conversatiecontext te creëren.

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

Pauzeer de huidige dialoog totdat de gebruiker een bericht naar de bot heeft gestuurd.

Van toepassing op