Пример #1
0
        public void HasOnlyIPv4()
        {
            var addresses = IpConfig.ListIpV4Addresses();

            Assert.NotNull(addresses);
            Assert.NotEmpty(addresses);
        }
Пример #2
0
        static void StartSearch(App app)
        {
            var parameters = new ScanParameters();
            var range      = IpConfig.IpRangeForIpAddress(IpConfig.ListIpV4Addresses().FirstOrDefault());

            parameters.StartIp = range[0];
            parameters.LastIp  = range[1];

            var scanner = new IpScan();

            var result = scanner.ScanIpRange(parameters);

            app.RefreshDeviceList(result);
        }