Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 public InetAddressDnsResolver(SimpleDnsCache cache, Config config)
 {
     _cache       = cache;
     _positiveTtl = (long)config.GetTimeSpan("positive-ttl").TotalMilliseconds;
     _negativeTtl = (long)config.GetTimeSpan("negative-ttl").TotalMilliseconds;
 }