/// <summary>
 /// Initializes a new instance of the <see cref="NetworkEnumerator"/> class.
 /// </summary>
 /// <param name="networkGateway">The network gateway.</param>
 /// <autogeneratedoc />
 public NetworkEnumerator(INetworkGateway networkGateway)
 {
     IPAddressRange =
         new IPAddressRange(new IPAddressSubnet(networkGateway.IPAddress, networkGateway.SubnetMask));
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NetworkGraph"/> class.
 /// </summary>
 /// <param name="networkGateway">The network gateway.</param>
 /// <param name="localNetworkDevice">The local network device.</param>
 /// <exception cref="ArgumentNullException">
 /// networkGateway
 /// or
 /// localNetworkDevice
 /// </exception>
 /// <autogeneratedoc />
 public NetworkGraph(INetworkGateway networkGateway, ILocalNetworkDevice localNetworkDevice)
 {
     NetworkGateway     = networkGateway ?? throw new ArgumentNullException(nameof(networkGateway));
     LocalNetworkDevice = localNetworkDevice ?? throw new ArgumentNullException(nameof(localNetworkDevice));
 }