Esempio n. 1
0
        public HttpApiIntegration(HttpApiIntegrationConfiguration configuration)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException(nameof(configuration),
                                                "HTTP API Integration configuration has not been provided.");
            }

            _configuration = configuration;
        }
 public Builder(string url, string apiKey            = null, string organizationId = null,
                IDictionary <string, string> headers = null)
 {
     Configuration = new HttpApiIntegrationConfiguration(url, apiKey, organizationId, headers);
 }
Esempio n. 3
0
 /// <summary>
 /// Factory method for creating a new instance of HttpApiIntegration.
 /// </summary>
 /// <param name="configuration">Configuration of HTTP API integration.</param>
 /// <returns>Instance of HttpApiIntegration.</returns>
 public static HttpApiIntegration Create(HttpApiIntegrationConfiguration configuration)
 => new HttpApiIntegration(configuration);