Exemple #1
0
        public IEnumerable<RemoteHost> FindClients()
        {
            using (var client = new ViewServiceClient())
            {
                foreach (var endpoint in client.Discover())
                {
#if !DEBUG
                    if (!endpoint.Address.IsLoopback) // enable local testing
#endif
                    yield return new RemoteHost { Ip = IpHelper.GetIp(endpoint.Address.Uri.Host), Name = endpoint.Name };
                }
            }
        }