public FaunaClient(string secret, string domain = "db.fauna.com", string scheme = "https", int?port = null, TimeSpan?timeout = null, IClientIO clientIO = null) { if (!port.HasValue) { port = scheme == "https" ? 443 : 80; } _clientIo = clientIO ?? new DefaultClientIO(new Uri($"{scheme}://{domain}:{port}"), timeout ?? TimeSpan.FromSeconds(60.0), secret); }
/// <summary> /// Constructs a new instance of <see cref="FaunaClient"/> with the specified <see cref="IClientIO"/>. /// </summary> public FaunaClient(IClientIO clientIO) { this.clientIO = clientIO; }