protected bool Equals(ProjectionSourceDefinition other)
 {
     return(AllEvents.Equals(other.AllEvents) && AllStreams.Equals(other.AllStreams) &&
            ByStream.Equals(other.ByStream) && ByCustomPartitions.Equals(other.ByCustomPartitions) &&
            Equals(Categories, other.Categories) && Equals(Events, other.Events) &&
            Equals(Streams, other.Streams) && string.Equals(CatalogStream, other.CatalogStream) &&
            LimitingCommitPosition == other.LimitingCommitPosition && Equals(Options, other.Options));
 }
Example #2
0
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = AllEvents.GetHashCode();
         hashCode = (hashCode * 397) ^ AllStreams.GetHashCode();
         hashCode = (hashCode * 397) ^ ByStream.GetHashCode();
         hashCode = (hashCode * 397) ^ ByCustomPartitions.GetHashCode();
         hashCode = (hashCode * 397) ^ LimitingCommitPosition.GetHashCode();
         hashCode = (hashCode * 397) ^ (Options != null ? Options.GetHashCode() : 0);
         return(hashCode);
     }
 }