예제 #1
0
 /// <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;
 }
예제 #2
0
 /// <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));
 }