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

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