Beispiel #1
0
 public SonarConnector(SonarSettings sonarSettings, ICacheManager cacheManager, IHttpApiClient httpApiClient, ILoggingService loggingService)
 {
     _cacheManager   = cacheManager;
     _httpApiClient  = httpApiClient;
     _sonarSettings  = sonarSettings;
     _loggingService = loggingService;
 }
Beispiel #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);
 }
Beispiel #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);
        }
Beispiel #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);
 }
Beispiel #6
0
 public ChangesetsConnector(TfsSettings tfsSettings, IHttpApiClient httpApiClient) : base(tfsSettings, httpApiClient)
 {
 }
Beispiel #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;
 }
Beispiel #9
0
 public GraphQLApiClient(HttpClient httpClient, string baseUri)
 {
     this.client = new HttpApiClient(httpClient, baseUri);
 }
Beispiel #10
0
 public GraphQLApiClient(string baseUri)
 {
     this.client = new HttpApiClient(baseUri);
 }
Beispiel #11
0
 public VersionControlConnector(TfsSettings tfsSettings, IHttpApiClient httpApiClient) : base(tfsSettings, httpApiClient)
 {
 }
Beispiel #12
0
 public ApiBase(IHttpApiClient client, string controllerName, IAuthenticationManager authenticationManager)
     : this(client, controllerName)
 {
     _authenticationManager = authenticationManager;
 }
Beispiel #13
0
        private string server = "http://localhost:10001"; // "172.17.0.3:30209";

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