TeamsBotApplicationOptions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Options for configuring a TeamsBotApplication. Inherits BotApplicationOptions so a single options object covers both Core and Teams settings.
public sealed class TeamsBotApplicationOptions : Microsoft.Teams.Core.Hosting.BotApplicationOptions
type TeamsBotApplicationOptions = class
inherit BotApplicationOptions
Public NotInheritable Class TeamsBotApplicationOptions
Inherits BotApplicationOptions
- Inheritance
Constructors
| Name | Description |
|---|---|
| TeamsBotApplicationOptions() | |
Properties
| Name | Description |
|---|---|
| AppId |
Gets or sets the application (client) ID, used for logging and diagnostics. (Inherited from BotApplicationOptions) |
| GraphBaseUrl |
Microsoft Graph host root the inbound-file path resolves drive items against, for files that arrive without a pre-authorized download URL.
Populated from A host root, not a versioned endpoint: the API version is appended at the point of use, so a pre-versioned value produces |
| ProcessActivityTimeout |
Gets or sets the maximum time allowed for processing an incoming activity. This timeout replaces the HTTP request's cancellation token so that handlers (especially streaming handlers) are not canceled when the incoming HTTP connection closes. Defaults to 5 minutes. Set to InfiniteTimeSpan to disable the timeout. (Inherited from BotApplicationOptions) |
Methods
| Name | Description |
|---|---|
| AddOAuthFlow(String, Action<OAuthOptions>) |
Register an OAuth flow with the given connection name and optional configuration. |
| UseState(Action<TurnStateOptions>) |
Enables per-turn state management backed by IDistributedCache. An in-memory cache is used by default; register a custom IDistributedCache (Redis, SQL Server, etc.) to persist state across restarts. |