Exemplo n.º 1
0
        public bool Equals(PersistOnEventRequest other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            if (PersistOnEventSequenceNr != other.PersistOnEventSequenceNr)
            {
                return(false);
            }
            if (!PersistOnEventId.Equals(other.PersistOnEventId))
            {
                return(false);
            }
            if (InstanceId != other.InstanceId)
            {
                return(false);
            }
            if (Invocations.Length != other.Invocations.Length)
            {
                return(false);
            }

            for (int i = 0; i < Invocations.Length; i++)
            {
                if (!Equals(this.Invocations[i], other.Invocations[i]))
                {
                    return(false);
                }
            }

            return(true);
        }
Exemplo n.º 2
0
 public bool Equals(DurableEvent other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(Payload, other.Payload) &&
            LocalSequenceNr == other.LocalSequenceNr &&
            string.Equals(EmitterId, other.EmitterId) &&
            string.Equals(EmitterAggregateId, other.EmitterAggregateId) &&
            CustomDestinationAggregateIds.SetEquals(other.CustomDestinationAggregateIds) &&
            SystemTimestamp.Equals(other.SystemTimestamp) &&
            Equals(VectorTimestamp, other.VectorTimestamp) &&
            string.Equals(ProcessId, other.ProcessId) &&
            string.Equals(LocalLogId, other.LocalLogId) &&
            string.Equals(DeliveryId, other.DeliveryId) &&
            PersistOnEventSequenceNr == other.PersistOnEventSequenceNr &&
            PersistOnEventId.Equals(other.PersistOnEventId) &&
            Id.Equals(other.Id));
 }