Пример #1
0
 private static ScanNetworkResult ScanEndpoint(CancellationToken userToken, DnsResolverBase resolver, Protocol protocol, IPEndpoint endpoint)
 {
     var status = Ping.PerformPing(endpoint, protocol);
     var hostName = status ? GetHostName(resolver, endpoint) : null;
     var result = new ScanNetworkResult(protocol, endpoint, hostName, status);
     return result;
 }
Пример #2
0
        private static ScanNetworkResult ScanEndpoint(CancellationToken userToken, DnsResolverBase resolver, Protocol protocol, IPEndpoint endpoint)
        {
            var status   = Ping.PerformPing(endpoint, protocol);
            var hostName = status ? GetHostName(resolver, endpoint) : null;
            var result   = new ScanNetworkResult(protocol, endpoint, hostName, status);

            return(result);
        }
Пример #3
0
        public ScanNetworkBatch(ScanNetworkResult[] results)
        {
            if (results == null)
            {
                throw new ArgumentNullException("results");
            }

            m_results = results;
        }