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); }
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; }