Jaa


Extensions Class

Definition

Helper methods.

public static class Extensions
type Extensions = class
Public Module Extensions
Inheritance
Extensions

Methods

AddHeroCard<T>(IMessageActivity, String, IEnumerable<T>, IEnumerable<String>)

Generates buttons from options and add them to the message.

AddKeyboardCard<T>(IMessageActivity, String, IEnumerable<T>, IEnumerable<String>)

Generates buttons from options and add them to the message.

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.

Get<T>(IBotDataBag, String)
GetSignInUrlAsync(IDialogContext, String)
GetUserTokenAsync(IDialogContext, String, String)
GetUserTokenAsync(IDialogContext, String)
GetValue<T>(IBotDataBag, String)

Gets the value associated with the specified key.

GetValueOrDefault<T>(IBotDataBag, String, T)

Gets the value associated with the specified key or a default value if not found.

GZipSerialize(ResumptionCookie)
Obsolete.

Binary serializes ResumptionCookie using GZipStream.

PostAsync(IBotToUser, String, String, CancellationToken)

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

RecognizeDouble(IPromptRecognizer, IMessageActivity)

Recognizer for a double number.

RecognizeDoubleInRange(IPromptRecognizer, IMessageActivity, Nullable<Double>, Nullable<Double>)

Recognizes the double in range.

RecognizeInteger(IPromptRecognizer, IMessageActivity)

Recognizer for a Int64 number.

RecognizeIntegerInRange(IPromptRecognizer, IMessageActivity, Nullable<Int64>, Nullable<Int64>)

Recognizer for a Int64 number within a range

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