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