示例#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);
        }
示例#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);
        }
示例#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);
 }