BotApplication Constructors
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.
Overloads
| Name | Description |
|---|---|
| BotApplication() |
Creates a default instance, primarily for testing purposes. The ConversationClient and UserTokenClient properties will not be initialized; accessing them will throw InvalidOperationException. |
| BotApplication(ConversationClient, UserTokenClient, ILogger<BotApplication>, BotApplicationOptions) |
Initializes a new instance of the BotApplication class with the specified conversation client, user token client, logger, and optional application options. |
BotApplication()
Creates a default instance, primarily for testing purposes. The ConversationClient and UserTokenClient properties will not be initialized; accessing them will throw InvalidOperationException.
protected BotApplication();
Protected Sub New ()
Applies to
BotApplication(ConversationClient, UserTokenClient, ILogger<BotApplication>, BotApplicationOptions)
Initializes a new instance of the BotApplication class with the specified conversation client, user token client, logger, and optional application options.
public BotApplication(Microsoft.Teams.Core.ConversationClient conversationClient, Microsoft.Teams.Core.UserTokenClient userTokenClient, Microsoft.Extensions.Logging.ILogger<Microsoft.Teams.Core.BotApplication> logger, Microsoft.Teams.Core.Hosting.BotApplicationOptions? options = default);
new Microsoft.Teams.Core.BotApplication : Microsoft.Teams.Core.ConversationClient * Microsoft.Teams.Core.UserTokenClient * Microsoft.Extensions.Logging.ILogger<Microsoft.Teams.Core.BotApplication> * Microsoft.Teams.Core.Hosting.BotApplicationOptions -> Microsoft.Teams.Core.BotApplication
Public Sub New (conversationClient As ConversationClient, userTokenClient As UserTokenClient, logger As ILogger(Of BotApplication), Optional options As BotApplicationOptions = Nothing)
Parameters
- conversationClient
- ConversationClient
The client used to manage and interact with conversations for the bot.
- userTokenClient
- UserTokenClient
The client used to manage user tokens for authentication.
- logger
- ILogger<BotApplication>
The logger used to record operational and diagnostic information for the bot application.
- options
- BotApplicationOptions
Options containing the application (client) ID, used for logging and diagnostics. Defaults to an empty instance if not provided.