using System; namespace Codice.Common.InRep { [Serializable] public class ObjectInRepInfo : ObjectInfo { public long RepId = -1; public long Id = -1; public ObjectInRepInfo() { } public ObjectInRepInfo(long id) { Id = id; } public override bool Equals(object obj) { if (!(obj is ObjectInRepInfo)) { return false; } ObjectInRepInfo repObj = obj as ObjectInRepInfo; if (RepId != repObj.RepId) { return false; } if (Id != repObj.Id) { return false; } return base.Equals(obj); } public override int GetHashCode() { return base.GetHashCode(); } } } namespace Codice.Common.Rep { [Serializable] public class RepositoryServerInfo : ObjectInfo { public string ServerName; public override bool Equals(object obj) { if (!(obj is RepositoryServerInfo)) { return false; } RepositoryServerInfo repObj = obj as RepositoryServerInfo; if (ServerLocator.Get().AreSameServer(ServerName, repObj.ServerName)) { return false; } return base.Equals(obj); } public override int GetHashCode() { return base.GetHashCode(); } } }