Exemplo n.º 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));
 }
Exemplo n.º 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];
 }