Ejemplo n.º 1
0
        public NodeHeader FindClusterNode()
        {
            foreach (var item in nodes)
            {
                if (header.NodeAddress == item.Address)
                {
                    continue;
                }

                RemoteClusterNode conn = new RemoteClusterNode();

                try
                {
                    if (conn.Connect(item.Address))
                    {
                        NodeHeader result = conn.WhoIs();

                        return(result);
                    }
                }
                catch (Exception)
                {
                }
            }

            return(null);
        }
Ejemplo n.º 2
0
        public NodeHeader FindClusterNode()
        {
            foreach (var item in nodes)
            {
                if (header.NodeAddress == item.Address)
                {
                    continue;
                }

                RemoteClusterNode conn = new RemoteClusterNode();

                try
                {
                    if (conn.Connect(item.Address))
                    {
                        NodeHeader result = conn.WhoIs();

                        return result;
                    }
                }
                catch (Exception)
                {
                }
            }

            return null;
        }