/// <summary> /// Creates a new instance of <see cref="DnsQueryAndServerSettings"/>. /// </summary> public DnsQueryAndServerSettings(DnsQueryAndServerOptions options, IReadOnlyCollection <NameServer> overrideServers) : this(options) { _endpoints = overrideServers?.ToArray() ?? throw new ArgumentNullException(nameof(overrideServers)); }
/// <summary> /// Creates a new instance of <see cref="DnsQueryAndServerSettings"/>. /// </summary> public DnsQueryAndServerSettings(DnsQueryAndServerOptions options) : base(options) { _endpoints = options.NameServers?.ToArray() ?? new NameServer[0]; }