Exemplo n.º 1
0
        public void Initialise(AuthSettings settings)
        {
            _settings = settings;
            var httpClient = new HttpClient
            {
                BaseAddress = settings.ApiBase
            };

            _client = new BitbucketRestClient(httpClient, _logger, settings.Username, settings.Token);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public void Initialise(AuthSettings settings)
 {
     _settings = settings ?? throw new ArgumentNullException(nameof(settings));
     _client   = new BitbucketRestClient(_clientFactory, _logger, settings.Username, settings.Token, settings.ApiBase);
 }