Exemplo n.º 1
0
        public void Initialise(AuthSettings settings)
        {
            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

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

            _client = new GiteaRestClient(httpClient, settings.Token, _logger);
        }
Exemplo n.º 3
0
        public void Initialise(AuthSettings settings)
        {
            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

            var httpClient = new HttpClient
            {
                BaseAddress = settings.ApiBase
            };

            _client = new GiteaRestClient(httpClient, settings.Token, _logger);
        }