Taal

BotFrameworkHttpAdapter Constructors

Definitie

Overloads

Name Description
BotFrameworkHttpAdapter(IConfiguration, ILogger<BotFrameworkHttpAdapter>)

Initialiseert een nieuw exemplaar van de BotFrameworkHttpAdapter klasse.

BotFrameworkHttpAdapter(ICredentialProvider, IChannelProvider, ILogger<BotFrameworkHttpAdapter>)

Initialiseert een nieuwe instantie van de BotFrameworkHttpAdapter klasse, met behulp van een credentialprovider.

BotFrameworkHttpAdapter(ICredentialProvider, IChannelProvider, HttpClient, ILogger<BotFrameworkHttpAdapter>)

Initialiseert een nieuwe instantie van de BotFrameworkHttpAdapter klasse, met behulp van een credentialprovider.

BotFrameworkHttpAdapter(ICredentialProvider, AuthenticationConfiguration, IChannelProvider, RetryPolicy, HttpClient, IMiddleware, ILogger)

Initialiseert een nieuwe instantie van de BotFrameworkHttpAdapter klasse, met behulp van een credentialprovider.

BotFrameworkHttpAdapter(IConfiguration, ICredentialProvider, AuthenticationConfiguration, IChannelProvider, RetryPolicy, HttpClient, IMiddleware, ILogger)

Initialiseert een nieuw exemplaar van de BotFrameworkHttpAdapter klasse.

BotFrameworkHttpAdapter(IConfiguration, ILogger<BotFrameworkHttpAdapter>)

Initialiseert een nieuw exemplaar van de BotFrameworkHttpAdapter klasse.

protected BotFrameworkHttpAdapter(Microsoft.Extensions.Configuration.IConfiguration configuration, Microsoft.Extensions.Logging.ILogger<Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter> logger = default);
new Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter : Microsoft.Extensions.Configuration.IConfiguration * Microsoft.Extensions.Logging.ILogger<Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter> -> Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter
Protected Sub New (configuration As IConfiguration, Optional logger As ILogger(Of BotFrameworkHttpAdapter) = Nothing)

Parameters

configuration
IConfiguration

Een IConfiguration exemplaar.

logger
ILogger<BotFrameworkHttpAdapter>

De ILogger-implementatie die deze adapter zou moeten gebruiken.

Van toepassing op

BotFrameworkHttpAdapter(ICredentialProvider, IChannelProvider, ILogger<BotFrameworkHttpAdapter>)

Initialiseert een nieuwe instantie van de BotFrameworkHttpAdapter klasse, met behulp van een credentialprovider.

public BotFrameworkHttpAdapter(Microsoft.Bot.Connector.Authentication.ICredentialProvider credentialProvider = default, Microsoft.Bot.Connector.Authentication.IChannelProvider channelProvider = default, Microsoft.Extensions.Logging.ILogger<Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter> logger = default);
new Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter : Microsoft.Bot.Connector.Authentication.ICredentialProvider * Microsoft.Bot.Connector.Authentication.IChannelProvider * Microsoft.Extensions.Logging.ILogger<Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter> -> Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter
Public Sub New (Optional credentialProvider As ICredentialProvider = Nothing, Optional channelProvider As IChannelProvider = Nothing, Optional logger As ILogger(Of BotFrameworkHttpAdapter) = Nothing)

Parameters

credentialProvider
ICredentialProvider

De aanbieder van de credentials.

channelProvider
IChannelProvider

De kanaalaanbieder.

logger
ILogger<BotFrameworkHttpAdapter>

De ILogger-implementatie die deze adapter zou moeten gebruiken.

Van toepassing op

BotFrameworkHttpAdapter(ICredentialProvider, IChannelProvider, HttpClient, ILogger<BotFrameworkHttpAdapter>)

Initialiseert een nieuwe instantie van de BotFrameworkHttpAdapter klasse, met behulp van een credentialprovider.

public BotFrameworkHttpAdapter(Microsoft.Bot.Connector.Authentication.ICredentialProvider credentialProvider, Microsoft.Bot.Connector.Authentication.IChannelProvider channelProvider, System.Net.Http.HttpClient httpClient, Microsoft.Extensions.Logging.ILogger<Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter> logger);
new Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter : Microsoft.Bot.Connector.Authentication.ICredentialProvider * Microsoft.Bot.Connector.Authentication.IChannelProvider * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILogger<Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter> -> Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter
Public Sub New (credentialProvider As ICredentialProvider, channelProvider As IChannelProvider, httpClient As HttpClient, logger As ILogger(Of BotFrameworkHttpAdapter))

Parameters

credentialProvider
ICredentialProvider

De aanbieder van de credentials.

channelProvider
IChannelProvider

De kanaalaanbieder.

httpClient
HttpClient

De HttpClient gebruikte.

logger
ILogger<BotFrameworkHttpAdapter>

De ILogger-implementatie die deze adapter zou moeten gebruiken.

Van toepassing op

BotFrameworkHttpAdapter(ICredentialProvider, AuthenticationConfiguration, IChannelProvider, RetryPolicy, HttpClient, IMiddleware, ILogger)

Initialiseert een nieuwe instantie van de BotFrameworkHttpAdapter klasse, met behulp van een credentialprovider.

public BotFrameworkHttpAdapter(Microsoft.Bot.Connector.Authentication.ICredentialProvider credentialProvider, Microsoft.Bot.Connector.Authentication.AuthenticationConfiguration authConfig, Microsoft.Bot.Connector.Authentication.IChannelProvider channelProvider = default, Microsoft.Rest.TransientFaultHandling.RetryPolicy connectorClientRetryPolicy = default, System.Net.Http.HttpClient customHttpClient = default, Microsoft.Bot.Builder.IMiddleware middleware = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter : Microsoft.Bot.Connector.Authentication.ICredentialProvider * Microsoft.Bot.Connector.Authentication.AuthenticationConfiguration * Microsoft.Bot.Connector.Authentication.IChannelProvider * Microsoft.Rest.TransientFaultHandling.RetryPolicy * System.Net.Http.HttpClient * Microsoft.Bot.Builder.IMiddleware * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter
Public Sub New (credentialProvider As ICredentialProvider, authConfig As AuthenticationConfiguration, Optional channelProvider As IChannelProvider = Nothing, Optional connectorClientRetryPolicy As RetryPolicy = Nothing, Optional customHttpClient As HttpClient = Nothing, Optional middleware As IMiddleware = Nothing, Optional logger As ILogger = Nothing)

Parameters

credentialProvider
ICredentialProvider

De aanbieder van de credentials.

authConfig
AuthenticationConfiguration

De authenticatieconfiguratie.

channelProvider
IChannelProvider

De kanaalaanbieder.

connectorClientRetryPolicy
Microsoft.Rest.TransientFaultHandling.RetryPolicy

Herhaalbeleid voor het opnieuw proberen van HTTP-operaties.

customHttpClient
HttpClient

De HTTP-client.

middleware
IMiddleware

De middleware om aanvankelijk aan de adapter toe te voegen.

logger
ILogger

De ILogger-implementatie die deze adapter zou moeten gebruiken.

Uitzonderingen

credentialProvider is null.

Opmerkingen

Gebruik een MiddlewareSet object om meerdere middlewarecomponenten toe te voegen aan de constructor. Gebruik de IMiddleware-methode om na de constructie extra middleware aan de adapter toe te voegen.

Van toepassing op

BotFrameworkHttpAdapter(IConfiguration, ICredentialProvider, AuthenticationConfiguration, IChannelProvider, RetryPolicy, HttpClient, IMiddleware, ILogger)

Initialiseert een nieuw exemplaar van de BotFrameworkHttpAdapter klasse.

protected BotFrameworkHttpAdapter(Microsoft.Extensions.Configuration.IConfiguration configuration, Microsoft.Bot.Connector.Authentication.ICredentialProvider credentialProvider, Microsoft.Bot.Connector.Authentication.AuthenticationConfiguration authConfig = default, Microsoft.Bot.Connector.Authentication.IChannelProvider channelProvider = default, Microsoft.Rest.TransientFaultHandling.RetryPolicy connectorClientRetryPolicy = default, System.Net.Http.HttpClient customHttpClient = default, Microsoft.Bot.Builder.IMiddleware middleware = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter : Microsoft.Extensions.Configuration.IConfiguration * Microsoft.Bot.Connector.Authentication.ICredentialProvider * Microsoft.Bot.Connector.Authentication.AuthenticationConfiguration * Microsoft.Bot.Connector.Authentication.IChannelProvider * Microsoft.Rest.TransientFaultHandling.RetryPolicy * System.Net.Http.HttpClient * Microsoft.Bot.Builder.IMiddleware * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkHttpAdapter
Protected Sub New (configuration As IConfiguration, credentialProvider As ICredentialProvider, Optional authConfig As AuthenticationConfiguration = Nothing, Optional channelProvider As IChannelProvider = Nothing, Optional connectorClientRetryPolicy As RetryPolicy = Nothing, Optional customHttpClient As HttpClient = Nothing, Optional middleware As IMiddleware = Nothing, Optional logger As ILogger = Nothing)

Parameters

configuration
IConfiguration

Een IConfiguration exemplaar.

credentialProvider
ICredentialProvider

De aanbieder van de credentials.

authConfig
AuthenticationConfiguration

De authenticatieconfiguratie.

channelProvider
IChannelProvider

De kanaalaanbieder.

connectorClientRetryPolicy
Microsoft.Rest.TransientFaultHandling.RetryPolicy

Herhaalbeleid voor het opnieuw proberen van HTTP-operaties.

customHttpClient
HttpClient

De HTTP-client.

middleware
IMiddleware

De middleware om aanvankelijk aan de adapter toe te voegen.

logger
ILogger

De ILogger-implementatie die deze adapter zou moeten gebruiken.

Van toepassing op