public ApiPortService(string endpoint, ProductInformation info) { _endpoint = endpoint; _client = new CompressedHttpClient(info) { Timeout = TimeSpan.FromMinutes(10) }; }
public ApiPortService(string endpoint, ProductInformation info) { if (string.IsNullOrWhiteSpace(endpoint)) { throw new ArgumentOutOfRangeException(nameof(endpoint), endpoint, "Must be a valid endpoint"); } _client = new CompressedHttpClient(info) { BaseAddress = new Uri(endpoint), Timeout = TimeSpan.FromMinutes(10) }; }