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

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