Exemplo n.º 1
0
        public void Initialise(AuthSettings settings)
        {
            _settings = settings ?? throw new ArgumentNullException(nameof(settings));
            var httpClient = new HttpClient
            {
                BaseAddress = new Uri($"{settings.ApiBase.Scheme}://{settings.ApiBase.Authority}")
            };

            _client = new BitbucketLocalRestClient(httpClient, _logger, settings.Username, settings.Token);
        }
Exemplo n.º 2
0
        public void Initialise(AuthSettings settings)
        {
            _settings = settings;
            var httpClient = new HttpClient
            {
                BaseAddress = settings.ApiBase
            };

            _client = new BitbucketLocalRestClient(httpClient, _logger, settings.Username, settings.Token);
        }
Exemplo n.º 3
0
 public void Initialise(AuthSettings settings)
 {
     _settings = settings ?? throw new ArgumentNullException(nameof(settings));
     _client   = new BitbucketLocalRestClient(_clientFactory, _logger, settings.Username, settings.Token, settings.ApiBase);
 }