Ejemplo n.º 1
0
        public PrestodbClient()
        {
            // Initialize with defaults
            this.Configuration = new PrestoClientSessionConfig();

            this.InitializeHttpClients();
        }
Ejemplo n.º 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)));
        }
Ejemplo n.º 3
0
        public PrestodbClient(PrestoClientSessionConfig config)
        {
            this.Configuration = config ?? throw new ArgumentNullException("config", "The presto client configuration cannot be null.");

            this.InitializeHttpClients();
        }