WebexAdapter Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| Nom | Description |
|---|---|
| WebexAdapter(WebexClientWrapper, WebexAdapterOptions, ILogger) |
Initialise une nouvelle instance de la classe WebexAdapter. Crée un adaptateur Webex. |
| WebexAdapter(IConfiguration, WebexAdapterOptions, ILogger) |
Initialise une nouvelle instance de la WebexAdapter classe en utilisant les paramètres de configuration. |
WebexAdapter(WebexClientWrapper, WebexAdapterOptions, ILogger)
Initialise une nouvelle instance de la classe WebexAdapter. Crée un adaptateur Webex.
public WebexAdapter(Microsoft.Bot.Builder.Adapters.Webex.WebexClientWrapper webexClient, Microsoft.Bot.Builder.Adapters.Webex.WebexAdapterOptions options, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Builder.Adapters.Webex.WebexAdapter : Microsoft.Bot.Builder.Adapters.Webex.WebexClientWrapper * Microsoft.Bot.Builder.Adapters.Webex.WebexAdapterOptions * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Builder.Adapters.Webex.WebexAdapter
Public Sub New (webexClient As WebexClientWrapper, options As WebexAdapterOptions, Optional logger As ILogger = Nothing)
Paramètres
- webexClient
- WebexClientWrapper
Une interface API Webex.
- options
- WebexAdapterOptions
Instance de WebexAdapterOptions.
- logger
- ILogger
L’implémentation ILogger que cet adaptateur devrait utiliser.
S’applique à
WebexAdapter(IConfiguration, WebexAdapterOptions, ILogger)
Initialise une nouvelle instance de la WebexAdapter classe en utilisant les paramètres de configuration.
public WebexAdapter(Microsoft.Extensions.Configuration.IConfiguration configuration, Microsoft.Bot.Builder.Adapters.Webex.WebexAdapterOptions options = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Builder.Adapters.Webex.WebexAdapter : Microsoft.Extensions.Configuration.IConfiguration * Microsoft.Bot.Builder.Adapters.Webex.WebexAdapterOptions * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Builder.Adapters.Webex.WebexAdapter
Public Sub New (configuration As IConfiguration, Optional options As WebexAdapterOptions = Nothing, Optional logger As ILogger = Nothing)
Paramètres
- configuration
- IConfiguration
Instance IConfiguration .
- options
- WebexAdapterOptions
Instance de WebexAdapterOptions.
- logger
- ILogger
L’implémentation ILogger que cet adaptateur devrait utiliser.
Remarques
Les clés de configuration sont : WebexAccessToken : un jeton d’accès pour le bot. WebexPublicAddress : L’URL principale de l’application bot. WebexSecret : Le secret utilisé pour valider les webhooks entrants. WebexWebhookName : Un nom pour l’abonnement webhook.