/// <summary> /// Constructor for private IP scan with minimum and maximum thread count set. /// </summary> /// <param name="ipAddressGeneratedHandler">The event handler that will be called when an IP address is generated.</param> /// <param name="minimumThreadCount">The minimum number of worker threads that can be active concurrently.</param> /// <param name="maximumThreadCount">The maximum number of worker threads that can be active concurrently.</param> public PrivateScan(IPScanner.IPScanHandler ipAddressGeneratedHandler, int minimumThreadCount, int maximumThreadCount) { _scan = new DefaultScan(); _scan.IPAddressGenerated += ipAddressGeneratedHandler; _scan.MinimumThreadCount = minimumThreadCount; _scan.MaximumThreadCount = maximumThreadCount; }
/// <summary> /// Constructor for generic private IP scan. /// </summary> /// <param name="ipAddressGeneratedHandler">The event handler that will be called when an IP address is generated.</param> public PrivateScan(IPScanner.IPScanHandler ipAddressGeneratedHandler) { _scan = new DefaultScan(); _scan.IPAddressGenerated += ipAddressGeneratedHandler; }