BotFrameworkConfigurationBuilder 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.
Used to build the configuration settings for a bot application.
public class BotFrameworkConfigurationBuilder
type BotFrameworkConfigurationBuilder = class
Public Class BotFrameworkConfigurationBuilder
- Inheritance
-
BotFrameworkConfigurationBuilder
Constructors
BotFrameworkConfigurationBuilder(BotFrameworkOptions) |
Initializes a new instance of the BotFrameworkConfigurationBuilder class. |
Properties
BotFrameworkOptions |
Gets the BotFrameworkOptions. |
Methods
UseCredentialProvider(ICredentialProvider) |
Configures an ICredentialProvider that should be used to store and retrieve credentials used during authentication with the Bot Framework. |
UseHttpClient(HttpClient) |
Sets the HttpClient instance that will be used to make Bot Framework Service calls. |
UseMiddleware(Func<ITurnContext,Exception,Task>) |
Adds an Error Handler the bot. |
UseMiddleware(IMiddleware) |
Adds a piece of IMiddleware to the bot's middleware pipeline. |
UsePaths(Action<BotFrameworkPaths>) |
Configures which paths should be used to expose the various endpoints of the bot. |
UseRetryPolicy(RetryPolicy) |
Adds retry policy on failure for Bot Framework Service calls. |
Extension Methods
UseMicrosoftApplicationIdentity(BotFrameworkConfigurationBuilder, String, String) |
Configures the bot with the a single identity that will be used to authenticate requests made to the Bot Framework. |