Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Payload != null ? Payload.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Manifest != null ? Manifest.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PersistenceId != null ? PersistenceId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ SequenceNr.GetHashCode();
         hashCode = (hashCode * 397) ^ IsDeleted.GetHashCode();
         hashCode = (hashCode * 397) ^ (Sender != null ? Sender.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (WriterGuid != null ? WriterGuid.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Payload != null ? Payload.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Manifest != null ? Manifest.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PersistenceId != null ? PersistenceId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ SequenceNr.GetHashCode();
         hashCode = (hashCode * 397) ^ IsDeleted.GetHashCode();
         hashCode = (hashCode * 397) ^ (Sender != null ? Sender.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (WriterGuid != null ? WriterGuid.GetHashCode() : 0);
         // timestamp not included in equals for backwards compatibility
         return(hashCode);
     }
 }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PersistenceId.Length != 0)
            {
                hash ^= PersistenceId.GetHashCode();
            }
            if (SequenceNr != 0L)
            {
                hash ^= SequenceNr.GetHashCode();
            }
            if (timeStamp_ != null)
            {
                hash ^= TimeStamp.GetHashCode();
            }
            if (payload_ != null)
            {
                hash ^= Payload.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 4
0
 public int CompareTo(StepCountObjectState other) => PersistenceId.CompareTo(other.PersistenceId);
Ejemplo n.º 5
0
 public int CompareTo(EmployeeState other) => PersistenceId.CompareTo(other.PersistenceId);