Exemplo n.º 1
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (PersistenceId != null ? PersistenceId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ToSequenceNr.GetHashCode();
         hashCode = (hashCode * 397) ^ (PersistentActor != null ? PersistentActor.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hash = ToSequenceNr.GetHashCode();
                foreach (var logId in RemoteLogIds)
                {
                    hash = (hash * 397) ^ logId.GetHashCode();
                }

                return(hash);
            }
        }