public void Initialise(AuthSettings settings) { _settings = settings; var httpClient = new HttpClient { BaseAddress = settings.ApiBase }; _client = new BitbucketRestClient(httpClient, _logger, settings.Username, settings.Token); }
public void Initialise(AuthSettings settings) { _settings = settings ?? throw new ArgumentNullException(nameof(settings)); var httpClient = new HttpClient { BaseAddress = settings.ApiBase }; _client = new BitbucketRestClient(httpClient, _logger, settings.Username, settings.Token); }
public void Initialise(AuthSettings settings) { _settings = settings ?? throw new ArgumentNullException(nameof(settings)); _client = new BitbucketRestClient(_clientFactory, _logger, settings.Username, settings.Token, settings.ApiBase); }