public TwilioIntegration(TwilioIntegrationConfiguration configuration) { if (configuration == null) { throw new ArgumentNullException(nameof(configuration), "Twilio Integration configuration has not been provided."); } _configuration = configuration; }
/// <summary> /// Factory method for creating a new instance of TwilioIntegration. /// </summary> /// <param name="configuration">Configuration of Twilio integration.</param> /// <returns>Instance of TwilioIntegration.</returns> public static TwilioIntegration Create(TwilioIntegrationConfiguration configuration) => new TwilioIntegration(configuration);