/// <summary>
 /// TBD
 /// </summary>
 /// <param name="cache">TBD</param>
 /// <param name="config">TBD</param>
 public InetAddressDnsResolver(SimpleDnsCache cache, Config config)
 {
     _cache       = cache;
     _positiveTtl = (long)config.GetTimeSpan("positive-ttl", null).TotalMilliseconds;
     _negativeTtl = (long)config.GetTimeSpan("negative-ttl", null).TotalMilliseconds;
     _useIpv6     = config.GetBoolean("use-ipv6", false);
 }
示例#2
0
 public InetAddressDnsResolver(SimpleDnsCache cache, Config config)
 {
     _cache       = cache;
     _positiveTtl = (long)config.GetTimeSpan("positive-ttl").TotalMilliseconds;
     _negativeTtl = (long)config.GetTimeSpan("negative-ttl").TotalMilliseconds;
 }