MessageExtensions<TState> Class

Definition

MessageExtensions class to enable fluent style registration of handlers related to Message Extensions.

public class MessageExtensions<TState> where TState : TurnState, new()
type MessageExtensions<'State (requires 'State :> TurnState and 'State : (new : unit -> 'State))> = class
Public Class MessageExtensions(Of TState)

Type Parameters

TState

The type of the turn state object used by the application.

Inheritance
MessageExtensions<TState>

Constructors

MessageExtensions<TState>(Application<TState>)

Creates a new instance of the MessageExtensions class.

Methods

OnAnonymousQueryLink(QueryLinkHandlerAsync<TState>)

Registers a handler that implements the logic to handle anonymous link unfurling.

OnBotMessagePreviewEdit(MultipleRouteSelector, BotMessagePreviewEditHandlerAsync<TState>)

Registers a handler to process the 'edit' action of a message that's being previewed by the user prior to sending.

OnBotMessagePreviewEdit(Regex, BotMessagePreviewEditHandlerAsync<TState>)

Registers a handler to process the 'edit' action of a message that's being previewed by the user prior to sending.

OnBotMessagePreviewEdit(RouteSelectorAsync, BotMessagePreviewEditHandlerAsync<TState>)

Registers a handler to process the 'edit' action of a message that's being previewed by the user prior to sending.

OnBotMessagePreviewEdit(String, BotMessagePreviewEditHandlerAsync<TState>)

Registers a handler to process the 'edit' action of a message that's being previewed by the user prior to sending.

OnBotMessagePreviewSend(MultipleRouteSelector, BotMessagePreviewSendHandler<TState>)

Registers a handler to process the 'send' action of a message that's being previewed by the user prior to sending.

OnBotMessagePreviewSend(Regex, BotMessagePreviewSendHandler<TState>)

Registers a handler to process the 'send' action of a message that's being previewed by the user prior to sending.

OnBotMessagePreviewSend(RouteSelectorAsync, BotMessagePreviewSendHandler<TState>)

Registers a handler to process the 'send' action of a message that's being previewed by the user prior to sending.

OnBotMessagePreviewSend(String, BotMessagePreviewSendHandler<TState>)

Registers a handler to process the 'send' action of a message that's being previewed by the user prior to sending.

OnCardButtonClicked(CardButtonClickedHandler<TState>)

Registers a handler that implements the logic when a user has clicked on a button in a Message Extension card.

OnConfigureSettings(ConfigureSettingsHandler<TState>)

Registers a handler that implements the logic to invoke configuring Message Extension settings.

OnFetchTask(MultipleRouteSelector, FetchTaskHandlerAsync<TState>)

Registers a handler to process the initial fetch task for an Action based message extension.

OnFetchTask(Regex, FetchTaskHandlerAsync<TState>)

Registers a handler to process the initial fetch task for an Action based message extension.

OnFetchTask(RouteSelectorAsync, FetchTaskHandlerAsync<TState>)

Registers a handler to process the initial fetch task for an Action based message extension.

OnFetchTask(String, FetchTaskHandlerAsync<TState>)

Registers a handler to process the initial fetch task for an Action based message extension.

OnQuery(MultipleRouteSelector, QueryHandlerAsync<TState>)

Registers a handler that implements a Search based Message Extension.

OnQuery(Regex, QueryHandlerAsync<TState>)

Registers a handler that implements a Search based Message Extension.

OnQuery(RouteSelectorAsync, QueryHandlerAsync<TState>)

Registers a handler that implements a Search based Message Extension.

OnQuery(String, QueryHandlerAsync<TState>)

Registers a handler that implements a Search based Message Extension.

OnQueryLink(QueryLinkHandlerAsync<TState>)

Registers a handler that implements a Link Unfurling based Message Extension.

OnQueryUrlSetting(QueryUrlSettingHandlerAsync<TState>)

Registers a handler that invokes the fetch of the configuration settings for a Message Extension.

OnSelectItem(SelectItemHandlerAsync<TState>)

Registers a handler that implements the logic to handle the tap actions for items returned by a Search based message extension. <remarks> The composeExtension/selectItem INVOKE activity does not contain any sort of command ID, so only a single select item handler can be registered. Developers will need to include a type name of some sort in the preview item they return if they need to support multiple select item handlers. </remarks>>

OnSubmitAction(MultipleRouteSelector, SubmitActionHandlerAsync<TState>)

Registers a handler that implements the submit action for an Action based Message Extension.

OnSubmitAction(Regex, SubmitActionHandlerAsync<TState>)

Registers a handler that implements the submit action for an Action based Message Extension.

OnSubmitAction(RouteSelectorAsync, SubmitActionHandlerAsync<TState>)

Registers a handler that implements the submit action for an Action based Message Extension.

OnSubmitAction(String, SubmitActionHandlerAsync<TState>)

Registers a handler that implements the submit action for an Action based Message Extension.

Applies to