public void AddReplicas(List <ServerData> replicasList) { foreach (ServerData replica in replicasList) { ReplicasList.Add(replica); } }
public bool Equals(View otherView) { if (otherView == null) { return(false); } int otherViewId = otherView.ViewId; string otherManagerUId = otherView.ManagerUId; List <ServerData> otherReplicasList = otherView.ReplicasList; if (ViewId == otherViewId && ManagerUId == otherManagerUId && ReplicasList.Equals(otherReplicasList)) { return(true); } return(false); }
public void AddReplica(ServerData newReplica) { ReplicasList.Add(newReplica); }
public ServerData FindByName(string serverName) { return(ReplicasList.Find(server => string.Equals(server.ServerName, serverName))); }
public ServerData Find(string serverUId) { return(ReplicasList.Find(server => string.Equals(server.ServerUId, serverUId))); }
public void Remove(ServerData serverData) { ReplicasList.Remove(serverData); }
public void Add(ServerData serverData) { ReplicasList.Add(serverData); }