BotFrameworkOptions BotFrameworkOptions BotFrameworkOptions Class


Contains settings that your ASP.NET application uses to initialize the BotAdapter that it adds to the HTTP request pipeline.

public class BotFrameworkOptions
type BotFrameworkOptions = class
Public Class BotFrameworkOptions


BotFrameworkOptions() BotFrameworkOptions()

Creates a BotFrameworkOptions object.

public BotFrameworkOptions ();
Public Sub New ()


ConnectorClientRetryPolicy ConnectorClientRetryPolicy ConnectorClientRetryPolicy

Gets or sets the retry policy to retry operations in case of errors from Bot Framework.

public Microsoft.Rest.TransientFaultHandling.RetryPolicy ConnectorClientRetryPolicy { get; set; }
member this.ConnectorClientRetryPolicy : Microsoft.Rest.TransientFaultHandling.RetryPolicy with get, set
Public Property ConnectorClientRetryPolicy As RetryPolicy
Microsoft.Rest.TransientFaultHandling.RetryPolicy Microsoft.Rest.TransientFaultHandling.RetryPolicy Microsoft.Rest.TransientFaultHandling.RetryPolicy

CredentialProvider CredentialProvider CredentialProvider

An ICredentialProvider that should be used to store and retrieve credentials used during authentication with the Bot Framework.

public Microsoft.Bot.Connector.Authentication.ICredentialProvider CredentialProvider { get; set; }
member this.CredentialProvider : Microsoft.Bot.Connector.Authentication.ICredentialProvider with get, set
Public Property CredentialProvider As ICredentialProvider

EnableProactiveMessages EnableProactiveMessages EnableProactiveMessages

Gets or sets whether a proactive messaging endpoint should be exposed for the bot.

public bool EnableProactiveMessages { get; set; }
member this.EnableProactiveMessages : bool with get, set
Public Property EnableProactiveMessages As Boolean
Boolean Boolean Boolean

True if the proactive messaging endpoint should be enabled, otherwise false.

Middleware Middleware Middleware

A list of IMiddleware that will be executed for each turn of the conversation.

public System.Collections.Generic.IList<Microsoft.Bot.Builder.IMiddleware> Middleware { get; }
member this.Middleware : System.Collections.Generic.IList<Microsoft.Bot.Builder.IMiddleware>
Public ReadOnly Property Middleware As IList(Of IMiddleware)

Applies to

See Also