WebexAdapter 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
WebexAdapter(WebexClientWrapper, WebexAdapterOptions, ILogger) |
Initializes a new instance of the WebexAdapter class. Creates a Webex adapter. |
WebexAdapter(IConfiguration, WebexAdapterOptions, ILogger) |
Initializes a new instance of the WebexAdapter class using configuration settings. |
WebexAdapter(WebexClientWrapper, WebexAdapterOptions, ILogger)
Initializes a new instance of the WebexAdapter class. Creates a Webex adapter.
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)
Parameters
- webexClient
- WebexClientWrapper
A Webex API interface.
- options
- WebexAdapterOptions
An instance of WebexAdapterOptions.
- logger
- ILogger
The ILogger implementation this adapter should use.
Applies to
WebexAdapter(IConfiguration, WebexAdapterOptions, ILogger)
Initializes a new instance of the WebexAdapter class using configuration settings.
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)
Parameters
- configuration
- IConfiguration
An IConfiguration instance.
- options
- WebexAdapterOptions
An instance of WebexAdapterOptions.
- logger
- ILogger
The ILogger implementation this adapter should use.
Remarks
The configuration keys are: WebexAccessToken: An access token for the bot. WebexPublicAddress: The root URL of the bot application. WebexSecret: The secret used to validate incoming webhooks. WebexWebhookName: A name for the webhook subscription.