Esempio n. 1
0
        public async Task ScanAsync(HostName host)
        {
            if (scanMode)
            {
                await scanTask;
                return;
            }

            scanMode = true;

            scanTask = client.PingAllNetworkAsync(host, SHUB_PORT);
            await scanTask;

            scanMode = false;

            if (ScanningDone != null)
            {
                ScanningDone(this, null);
            }
        }