Esempio n. 1
0
 protected bool Equals(QuerySourceOptions other)
 {
     return(string.Equals(ResultStreamName, other.ResultStreamName) &&
            string.Equals(PartitionResultStreamNamePattern, other.PartitionResultStreamNamePattern) &&
            ReorderEvents.Equals(other.ReorderEvents) && ProcessingLag == other.ProcessingLag &&
            IsBiState.Equals(other.IsBiState) && DefinesStateTransform.Equals(other.DefinesStateTransform) &&
            ProducesResults.Equals(other.ProducesResults) && DefinesFold.Equals(other.DefinesFold) &&
            HandlesDeletedNotifications.Equals(other.HandlesDeletedNotifications) &&
            IncludeLinks.Equals(other.IncludeLinks));
 }
Esempio n. 2
0
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = (ResultStreamName != null ? ResultStreamName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PartitionResultStreamNamePattern != null
                                            ? PartitionResultStreamNamePattern.GetHashCode()
                                            : 0);
         hashCode = (hashCode * 397) ^ ReorderEvents.GetHashCode();
         hashCode = (hashCode * 397) ^ ProcessingLag;
         hashCode = (hashCode * 397) ^ IsBiState.GetHashCode();
         hashCode = (hashCode * 397) ^ DefinesStateTransform.GetHashCode();
         hashCode = (hashCode * 397) ^ ProducesResults.GetHashCode();
         hashCode = (hashCode * 397) ^ DefinesFold.GetHashCode();
         hashCode = (hashCode * 397) ^ HandlesDeletedNotifications.GetHashCode();
         hashCode = (hashCode * 397) ^ IncludeLinks.GetHashCode();
         return(hashCode);
     }
 }