Пример #1
0
        public PrestodbClient()
        {
            // Initialize with defaults
            this.Configuration = new PrestoClientSessionConfig();

            this.InitializeHttpClients();
        }
Пример #2
0
        public PrestodbClient(PrestoClientSessionConfig config, Func <HttpClientHandler, HttpClient> httpClientFactory = null)
        {
            this.Configuration = config ?? throw new ArgumentNullException("config", "The presto client configuration cannot be null.");

            this.InitializeHttpClients(httpClientFactory ?? (handler => new HttpClient(handler)));
        }
Пример #3
0
        public PrestodbClient(PrestoClientSessionConfig config)
        {
            this.Configuration = config ?? throw new ArgumentNullException("config", "The presto client configuration cannot be null.");

            this.InitializeHttpClients();
        }