public HttpClient GetHttpClient(Type contractType) { IContractScope scope = contractScopeProvider.GetScope(contractType); IHttpClientResolver clientResolver = (IHttpClientResolver)serviceProvider.GetRequiredService(scope.HttpClientResolverType); return(clientResolver.GetHttpClient(contractType)); }
public Office365ApiService( IConfigurationManager configurationManager, IHttpClientResolver httpClientResolver) { _configurationManager = configurationManager; _httpClient = httpClientResolver.GetOffice365ApiHttpClient(); _retryAttempts = int.Parse(configurationManager.GetByKey("RetryAttempts")); }
public PasswordService( IHttpClientResolver httpClientResolver, IConfigurationManager configurationManager, IUserService userService) { _httpClient = httpClientResolver.GetIdentityServerHttpClient(); _configurationManager = configurationManager; _userService = userService; }
public RemoteMethodExecutor(IHttpClientResolver httpClientResolver, IInvocationSerializer invocationSerializer, IContractTypeBindingSerializer contractTypeBindingSerializer, IContractMethodBindingSerializer contractMethodBindingSerializer) { this.httpClientResolver = httpClientResolver; this.invocationSerializer = invocationSerializer; this.contractTypeBindingSerializer = contractTypeBindingSerializer; this.contractMethodBindingSerializer = contractMethodBindingSerializer; }
public HsvIntegrationService( IOptions <HsvIntegrationServiceOptions> options, ILog log, IHttpClientResolver httpClientResolver, IAccessTokenResolver accessTokenResolver) { this.options = options ?? throw new ArgumentNullException(nameof(options)); this.log = log ?? throw new ArgumentNullException(nameof(log)); this.httpClientResolver = httpClientResolver ?? throw new ArgumentNullException(nameof(httpClientResolver)); this.accessTokenResolver = accessTokenResolver ?? throw new ArgumentNullException(nameof(accessTokenResolver)); }
public InfusionServiceUpdater( IOptions <InfusionServiceUpdaterOptions> options, ILog log, IHttpClientResolver httpClientResolver, IAccessTokenResolver accessTokenResolver ) { this.options = options; this.log = log; this.httpClientResolver = httpClientResolver; this.accessTokenResolver = accessTokenResolver; }
public UsersController(IHttpClientResolver httpClientResolver, IConfigurationManager configurationManager) { _httpClient = httpClientResolver.GetIdentityServerHttpClient(); _configurationManager = configurationManager; }
public ActiveDirectoryService(IConfigurationManager configurationManager, IHttpClientResolver httpClientResolver) { _configurationManager = configurationManager; _httpClient = httpClientResolver.GetActiveDirectoryHttpClient(); }