Example #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));
        }
Example #2
0
 public Emitted(DurableEvent <T> @event) : base(EmissionType.Emitted)
 {
     Event = @event;
 }
Example #3
0
 public int CompareTo(DurableEvent <T> other) => Timestamp.CompareTo(other.Timestamp);
Example #4
0
 public Replaying(DurableEvent <T> @event) : base(EmissionType.Replaying)
 {
     Event = @event;
 }