Esempio n. 1
0
 public DnsResolverStrategy(
     IDnsContextAccessor dnsContextAccessor,
     CacheManager cacheManager,
     IOptionsMonitor <CacheConfig> cacheConfigOptionsMonitor)
     : base(dnsContextAccessor, cacheManager, cacheConfigOptionsMonitor)
 {
     NeedsQueryTimeout = false;
     StrategyName      = "DNS";
     IsCache           = false;
 }
 public AwsApiGatewayResolverStrategy(
     IDnsContextAccessor dnsContextAccessor,
     CacheManager cacheManager,
     AwsContext awsContext,
     AmazonAPIGatewayConfig amazonApiGatewayConfig,
     IServiceProvider serviceProvider)
     : base(dnsContextAccessor, cacheManager, awsContext,
            amazonApiGatewayConfig, serviceProvider)
 {
     StrategyName = "AwsApiGateway";
 }
 public AwsDocDbResolverStrategy(
     IDnsContextAccessor dnsContextAccessor,
     CacheManager cacheManager,
     AwsContext awsContext,
     AmazonDocDBConfig amazonDocDbConfig,
     IServiceProvider serviceProvider)
     : base(dnsContextAccessor, cacheManager, awsContext,
            amazonDocDbConfig, serviceProvider)
 {
     StrategyName = "AwsDocDb";
 }
 public AwsElasticCacheResolverStrategy(
     IDnsContextAccessor dnsContextAccessor,
     CacheManager cacheManager,
     AwsContext awsContext,
     AmazonElastiCacheConfig amazonElastiCacheConfig,
     IServiceProvider serviceProvider)
     : base(dnsContextAccessor, cacheManager, awsContext,
            amazonElastiCacheConfig, serviceProvider)
 {
     StrategyName = "AwsElasticCache";
 }
Esempio n. 5
0
 protected BaseResolverStrategy(
     IDnsContextAccessor dnsContextAccessor,
     CacheManager cacheManager,
     IOptionsMonitor <CacheConfig> cacheConfigOptionsMonitor)
 {
     DnsContextAccessor        = dnsContextAccessor;
     CacheManager              = cacheManager;
     CacheConfigOptionsMonitor = cacheConfigOptionsMonitor;
     Order             = 1000;
     IsCache           = false;
     NeedsQueryTimeout = true;
 }
Esempio n. 6
0
 protected AwsBaseResolverStrategy(
     IDnsContextAccessor dnsContextAccessor,
     CacheManager cacheManager,
     AwsContext awsContext,
     ClientConfig awsClientConfig,
     IServiceProvider serviceProvider)
     : base(dnsContextAccessor, cacheManager, null)
 {
     AwsContext        = awsContext;
     AwsClientConfig   = awsClientConfig;
     ServiceProvider   = serviceProvider;
     NeedsQueryTimeout = true;
 }
Esempio n. 7
0
        public CacheResolverStrategy(
            CacheManager cacheManager,
            IOptionsMonitor <HostsConfig> hostConfigOptionsMonitor,
            IOptionsMonitor <CacheConfig> cacheConfigOptionsMonitor,
            IDnsContextAccessor dnsContextAccessor)
            : base(dnsContextAccessor, cacheManager, cacheConfigOptionsMonitor)
        {
            _hostConfigOptionsMonitor = hostConfigOptionsMonitor;
            ParseHostConfig(_hostConfigOptionsMonitor.CurrentValue);
            _parseHostConfig = _hostConfigOptionsMonitor.OnChange(ParseHostConfig);

            StrategyName      = "CACHE";
            NeedsQueryTimeout = true;
            IsCache           = true;
        }
Esempio n. 8
0
 public DohResolverStrategy(
     CacheManager cacheManager,
     HttpClient httpClient,
     IDnsContextAccessor dnsContextAccessor,
     IOptionsMonitor <CacheConfig> cacheConfigOptionsMonitor)
     : base(dnsContextAccessor, cacheManager, cacheConfigOptionsMonitor)
 {
     _dohClient = new DohClient
     {
         HttpClient         = httpClient,
         ThrowResponseError = false
     };
     StrategyName      = "DOH";
     NeedsQueryTimeout = false;
 }