public void Initialise(AuthSettings settings) { var httpClient = new HttpClient { BaseAddress = settings.ApiBase }; _client = new GitlabRestClient(httpClient, settings.Token, _logger); }
public void Initialise(AuthSettings settings) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } _client = new GitlabRestClient(_clientFactory, settings.Token, _logger, settings.ApiBase); }
public void Initialise(AuthSettings settings) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } var httpClient = new HttpClient { BaseAddress = settings.ApiBase }; _client = new GitlabRestClient(httpClient, settings.Token, _logger); }