Esempio n. 1
0
        public bool Equals(DurableEvent <T> other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(ChannelId.Equals(other.ChannelId) &&
                   Offset == other.Offset &&
                   Timestamp.Equals(other.Timestamp) &&
                   EqualityComparer <T> .Default.Equals(Payload, other.Payload));
        }
Esempio n. 2
0
 public Emitted(DurableEvent <T> @event) : base(EmissionType.Emitted)
 {
     Event = @event;
 }
Esempio n. 3
0
 public int CompareTo(DurableEvent <T> other) => Timestamp.CompareTo(other.Timestamp);
Esempio n. 4
0
 public Replaying(DurableEvent <T> @event) : base(EmissionType.Replaying)
 {
     Event = @event;
 }