ApplicationBuilder<TState> Class

Definition

A builder class for simplifying the creation of an Application instance.

C#
public class ApplicationBuilder<TState> where TState : TurnState, IMemory, new()

Type Parameters

TState

Optional. Type of the turn state. This allows for strongly typed access to the turn state.

Inheritance
ApplicationBuilder<TState>

Constructors

Properties

Options

The application's configured options.

Methods

Build()

Builds and returns a new Application instance.

SetRemoveRecipientMention(Boolean)

Configures the removing of mentions of the bot's name from incoming messages. Default state for removeRecipientMention is true

SetStartTypingTimer(Boolean)

Configures the typing timer when messages are received. Default state for startTypingTimer is true

WithAdaptiveCardOptions(AdaptiveCardsOptions)

Configures the processing of Adaptive Card requests.

WithAIOptions(AIOptions<TState>)

Configures the AI system to use for processing incoming messages.

WithAuthentication(BotAdapter, AuthenticationOptions<TState>)

Configures authentication for the application.

WithLoggerFactory(ILoggerFactory)

Configures the Logger factory for the application

WithLongRunningMessages(BotAdapter, String)

Configures the application to use long running messages. Default state for longRunningMessages is false

WithStorage(IStorage)

Configures the storage system to use for storing the bot's state.

WithTaskModuleOptions(TaskModulesOptions)

Configures the processing of Task Module requests.

WithTurnStateFactory(Func<TState>)

Configures the turn state factory to use for managing the bot's turn state.

Applies to

Producto Versiones
Microsoft Teams Framework .NET SDK Latest