public PrestodbClient() { // Initialize with defaults this.Configuration = new PrestoClientSessionConfig(); this.InitializeHttpClients(); }
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))); }
public PrestodbClient(PrestoClientSessionConfig config) { this.Configuration = config ?? throw new ArgumentNullException("config", "The presto client configuration cannot be null."); this.InitializeHttpClients(); }