BotApplicationOptions 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 bot application instance.
public class BotApplicationOptions
type BotApplicationOptions = class
Public Class BotApplicationOptions
- Inheritance
-
BotApplicationOptions
- Derived
Constructors
| Name | Description |
|---|---|
| BotApplicationOptions() | |
Properties
| Name | Description |
|---|---|
| AppId |
Gets or sets the application (client) ID, used for logging and diagnostics. |
| 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. The timeout is cooperative: it cancels the token passed to middleware and handlers. When the pipeline observes that cancellation, processing fails with a BotHandlerException whose InnerException is a TimeoutException, so the inbound transport reports the turn as failed. Handlers that ignore the token or perform blocking I/O are not interrupted. The timeout is disabled when a debugger is attached. |