示例#1
0
 /// <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));
 }
示例#2
0
 /// <summary>
 /// Creates a new instance of <see cref="DnsQueryAndServerSettings"/>.
 /// </summary>
 public DnsQueryAndServerSettings(DnsQueryAndServerOptions options)
     : base(options)
 {
     _endpoints = options.NameServers?.ToArray() ?? new NameServer[0];
 }