コード例 #1
0
        public void Initialise(AuthSettings settings)
        {
            var httpClient = new HttpClient
            {
                BaseAddress = settings.ApiBase
            };

            _client = new GitlabRestClient(httpClient, settings.Token, _logger);
        }
コード例 #2
0
        public void Initialise(AuthSettings settings)
        {
            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

            _client = new GitlabRestClient(_clientFactory, settings.Token, _logger, settings.ApiBase);
        }
コード例 #3
0
        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);
        }