private static HttpClient CreateClient(AssemblaAuthenticator authenticator) { return(new HttpClient(authenticator) { BaseAddress = authenticator.ServiceUri }); }
public HttpAssemblaClient(AssemblaAuthenticator authenticator, ILogger <HttpAssemblaClient> logger) { if (authenticator == null) { throw new ArgumentNullException(nameof(authenticator)); } _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _client = CreateClient(authenticator); }