示例#1
0
 public List <string> GetIdentifiers()
 {
     return(new List <string>
     {
         CustomerUID,
         ProjectUID.ToString()
     });
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ProjectUID.GetHashCode();
         hashCode = (hashCode * 397) ^ AssetUID.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)StreamType;
         return(hashCode);
     }
 }
示例#3
0
 public bool Equals(SiteModelMachineAffinityKey other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(ProjectUID.Equals(other.ProjectUID) && AssetUID.Equals(other.AssetUID) && StreamType == other.StreamType);
 }
示例#4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = InsertUTC.GetHashCode();
         hashCode = (hashCode * 397) ^ (Content != null ? Content.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ProjectUID.GetHashCode();
         hashCode = (hashCode * 397) ^ MachineUid.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)Operation;
         hashCode = (hashCode * 397) ^ (int)Origin;
         return(hashCode);
     }
 }
示例#5
0
 public bool Equals(SiteModelChangeBufferQueueItem other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(InsertUTC.Equals(other.InsertUTC) && Equals(Content, other.Content) && ProjectUID.Equals(other.ProjectUID) && MachineUid.Equals(other.MachineUid) && Operation == other.Operation && Origin == other.Origin);
 }