public bool Execute() { foreach (var endpoint in endpoints) { if (continueWorking == false) { return(false); } try { log.DebugFormat("Notifying {0} about topology", endpoint.Sync); using (var node = distributedHashTableRemoteNodeFactory.Create(endpoint)) { currentNode = node; node.UpdateTopology(); } log.DebugFormat("Notified {0} about topology", endpoint.Sync); } catch (Exception e) { log.Warn(string.Format("Failed to send topology change to {0}", endpoint.Sync), e); } } return(true); }
public bool Execute() { foreach (var endpoint in endpoints) { if (continueWorking == false) return false; try { log.DebugFormat("Notifying {0} about topology", endpoint.Sync); using (var node = distributedHashTableRemoteNodeFactory.Create(endpoint)) { currentNode = node; node.UpdateTopology(); } log.DebugFormat("Notified {0} about topology", endpoint.Sync); } catch (Exception e) { log.Warn(string.Format("Failed to send topology change to {0}", endpoint.Sync), e); } } return true; }