Exemple #1
0
 public SonarConnector(SonarSettings sonarSettings, ICacheManager cacheManager, IHttpApiClient httpApiClient, ILoggingService loggingService)
 {
     _cacheManager   = cacheManager;
     _httpApiClient  = httpApiClient;
     _sonarSettings  = sonarSettings;
     _loggingService = loggingService;
 }
Exemple #2
0
 public TfsConnector(TfsSettings tfsSettings, ICacheManager cacheManager, IHttpApiClient httpApiClient)
 {
     _httpApiClient = httpApiClient;
     _cacheManager  = cacheManager;
     _changesets    = new ChangesetsConnector(tfsSettings, _httpApiClient);
     _vcc           = new VersionControlConnector(tfsSettings, _httpApiClient);
     _wit           = new WorkItemConnector(tfsSettings, _httpApiClient);
 }
Exemple #3
0
        private bool IsHttpApiConfigEquals(IHttpApiClient x, IHttpApiClient y)
        {
            var xInterceptor = x.ApiInterceptor as ApiInterceptor;
            var yInterceptor = y.ApiInterceptor as ApiInterceptor;

            return(xInterceptor.HttpApiConfig == yInterceptor.HttpApiConfig &&
                   xInterceptor.HttpApiConfig.HttpClient == yInterceptor.HttpApiConfig.HttpClient);
        }
Exemple #4
0
        public ApiBase(IHttpApiClient client, string controllerName)
        {
            if (client == null)
            {
                throw new ArgumentNullException(nameof(client));
            }

            Client = client;

            _authenticationManager = null;
            _uri     = controllerName;
            _fullUri = string.Format("{0}/{1}", Client.Client.BaseAddress, _uri);
        }
 public HttpApi(IBitmovinApiClientFactory apiClientFactory)
 {
     _apiClient = apiClientFactory.CreateClient <IHttpApiClient>();
     Customdata = new CustomdataApi(apiClientFactory);
 }
Exemple #6
0
 public ChangesetsConnector(TfsSettings tfsSettings, IHttpApiClient httpApiClient) : base(tfsSettings, httpApiClient)
 {
 }
Exemple #7
0
 public BingBotService(ILogger <BingBotService> logger, IOptions <SearchSettings> options, IHttpApiClient httpApiClient) : base(logger, httpApiClient)
 {
     _searchSettings = options.Value;
 }
 public CultureManager(IHttpApiClient client, IDictionaryServiceAgent dictionaryServiceAgent, ILoggingService loggingService)
 {
     _client = client;
     _dictionaryServiceAgent = dictionaryServiceAgent;
     _loggingService         = loggingService;
 }
Exemple #9
0
 public GraphQLApiClient(HttpClient httpClient, string baseUri)
 {
     this.client = new HttpApiClient(httpClient, baseUri);
 }
Exemple #10
0
 public GraphQLApiClient(string baseUri)
 {
     this.client = new HttpApiClient(baseUri);
 }
Exemple #11
0
 public VersionControlConnector(TfsSettings tfsSettings, IHttpApiClient httpApiClient) : base(tfsSettings, httpApiClient)
 {
 }
Exemple #12
0
 public ApiBase(IHttpApiClient client, string controllerName, IAuthenticationManager authenticationManager)
     : this(client, controllerName)
 {
     _authenticationManager = authenticationManager;
 }
Exemple #13
0
        private string server = "http://localhost:10001"; // "172.17.0.3:30209";

        public ChargeRepositoryServiceApiClient(IHttpApiClient client)
        {
            this.client = client;
        }
Exemple #14
0
 public BaseConnector(TfsSettings TfsSettings, IHttpApiClient httpApiClient)
 {
     tfsSettings    = TfsSettings;
     _httpApiClient = httpApiClient;
 }