public ConsulDiscoveryOptions()
 {
     if (!UseNetUtils)
     {
         _hostName = DnsTools.ResolveHostName();
         IpAddress = DnsTools.ResolveHostAddress(_hostName);
     }
 }
Esempio n. 2
0
        public ConsulDiscoveryOptions()
        {
            if (!UseNetUtils)
            {
#pragma warning disable S1699 // Constructors should only call non-overridable methods
                _hostName = DnsTools.ResolveHostName();
                IpAddress = DnsTools.ResolveHostAddress(_hostName);
#pragma warning restore S1699 // Constructors should only call non-overridable methods
            }
        }