Beispiel #1
0
        public TrafficCometInternalHealthHttpClient(HttpClient httpClient,
                                                    IHtttpCollectorResponseSplunkFactory httpCollectorResponseFactory,
                                                    IConfiguration configuration)
        {
            HttpClient = httpClient
                         ?? throw new ArgumentNullException(nameof(httpClient));

            HttpCollectorResponseFactory = httpCollectorResponseFactory
                                           ?? throw new ArgumentNullException(nameof(httpCollectorResponseFactory));

            Configuration = configuration ??
                            throw new ArgumentNullException(nameof(configuration));
        }
        public TrafficCometInternalHttpClient(HttpClient httpClient,
                                              IHttpRequestMessageSplunkFactory httpRequestMessageSplunkFactory,
                                              IHtttpCollectorResponseSplunkFactory htttpCollectorResponseFactory)
        {
            HttpClient = httpClient
                         ?? throw new ArgumentNullException(nameof(httpClient));

            HttpRequestMessageFactory = httpRequestMessageSplunkFactory
                                        ?? throw new ArgumentNullException(nameof(httpRequestMessageSplunkFactory));

            HttpCollectorResponseFactory = htttpCollectorResponseFactory
                                           ?? throw new ArgumentNullException(nameof(htttpCollectorResponseFactory));
        }