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"; }
protected BaseResolverStrategy( IDnsContextAccessor dnsContextAccessor, CacheManager cacheManager, IOptionsMonitor <CacheConfig> cacheConfigOptionsMonitor) { DnsContextAccessor = dnsContextAccessor; CacheManager = cacheManager; CacheConfigOptionsMonitor = cacheConfigOptionsMonitor; Order = 1000; IsCache = false; NeedsQueryTimeout = true; }
protected AwsBaseResolverStrategy( IDnsContextAccessor dnsContextAccessor, CacheManager cacheManager, AwsContext awsContext, ClientConfig awsClientConfig, IServiceProvider serviceProvider) : base(dnsContextAccessor, cacheManager, null) { AwsContext = awsContext; AwsClientConfig = awsClientConfig; ServiceProvider = serviceProvider; NeedsQueryTimeout = true; }
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; }
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; }