TwilioAdapter 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
TwilioAdapter(TwilioClientWrapper, TwilioAdapterOptions, ILogger) |
Initializes a new instance of the TwilioAdapter class. |
TwilioAdapter(IConfiguration, TwilioAdapterOptions, ILogger) |
Initializes a new instance of the TwilioAdapter class using configuration settings. |
TwilioAdapter(TwilioClientWrapper, TwilioAdapterOptions, ILogger)
Initializes a new instance of the TwilioAdapter class.
public TwilioAdapter (Microsoft.Bot.Builder.Adapters.Twilio.TwilioClientWrapper twilioClient, Microsoft.Bot.Builder.Adapters.Twilio.TwilioAdapterOptions adapterOptions, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Builder.Adapters.Twilio.TwilioAdapter : Microsoft.Bot.Builder.Adapters.Twilio.TwilioClientWrapper * Microsoft.Bot.Builder.Adapters.Twilio.TwilioAdapterOptions * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Builder.Adapters.Twilio.TwilioAdapter
Public Sub New (twilioClient As TwilioClientWrapper, adapterOptions As TwilioAdapterOptions, Optional logger As ILogger = Nothing)
Parameters
- twilioClient
- TwilioClientWrapper
The Twilio client to connect to.
- adapterOptions
- TwilioAdapterOptions
Options for the TwilioAdapter.
- logger
- ILogger
The ILogger implementation this adapter should use.
Applies to
TwilioAdapter(IConfiguration, TwilioAdapterOptions, ILogger)
Initializes a new instance of the TwilioAdapter class using configuration settings.
public TwilioAdapter (Microsoft.Extensions.Configuration.IConfiguration configuration, Microsoft.Bot.Builder.Adapters.Twilio.TwilioAdapterOptions adapterOptions = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Builder.Adapters.Twilio.TwilioAdapter : Microsoft.Extensions.Configuration.IConfiguration * Microsoft.Bot.Builder.Adapters.Twilio.TwilioAdapterOptions * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Builder.Adapters.Twilio.TwilioAdapter
Public Sub New (configuration As IConfiguration, Optional adapterOptions As TwilioAdapterOptions = Nothing, Optional logger As ILogger = Nothing)
Parameters
- configuration
- IConfiguration
An IConfiguration instance.
- adapterOptions
- TwilioAdapterOptions
Options for the TwilioAdapter.
- logger
- ILogger
The ILogger implementation this adapter should use.
Remarks
The configuration keys are: TwilioNumber: The phone number associated with the Twilio account. TwilioAccountSid: The string identifier of the account. See https://www.twilio.com/docs/glossary/what-is-a-sid TwilioAuthToken: The authentication token for the account. TwilioValidationUrl: The validation URL for incoming requests.