public ConsulDiscoveryOptions() { if (!UseNetUtils) { _hostName = DnsTools.ResolveHostName(); IpAddress = DnsTools.ResolveHostAddress(_hostName); } }
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 } }