/// <summary> /// Initializes a new instance of the <see cref="TwilioAdapter"/> class. /// </summary> /// <param name="twilioClient">The Twilio client to connect to.</param> /// <param name="logger">The ILogger implementation this adapter should use.</param> public TwilioAdapter(TwilioClientWrapper twilioClient, ILogger logger = null) { _twilioClient = twilioClient ?? throw new ArgumentNullException(nameof(twilioClient)); _logger = logger ?? NullLogger.Instance; }
/// <summary> /// Initializes a new instance of the <see cref="TwilioAdapter"/> class. /// </summary> /// <param name="twilioClient">The Twilio client to connect to.</param> public TwilioAdapter(TwilioClientWrapper twilioClient) { _twilioClient = twilioClient ?? throw new ArgumentNullException(nameof(twilioClient)); }