Exemple #1
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (EventFilter != null)
         {
             hashCode = hashCode * 59 + EventFilter.GetHashCode();
         }
         if (MinThreadPoolSize != null)
         {
             hashCode = hashCode * 59 + MinThreadPoolSize.GetHashCode();
         }
         if (MaxThreadPoolSize != null)
         {
             hashCode = hashCode * 59 + MaxThreadPoolSize.GetHashCode();
         }
         if (CqWcmWorkflowTerminateOnActivate != null)
         {
             hashCode = hashCode * 59 + CqWcmWorkflowTerminateOnActivate.GetHashCode();
         }
         if (CqWcmWorklfowTerminateExclusionList != null)
         {
             hashCode = hashCode * 59 + CqWcmWorklfowTerminateExclusionList.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemple #2
0
        /// <summary>
        /// Returns true if ComDayCqWcmWorkflowImplWcmWorkflowServiceImplProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComDayCqWcmWorkflowImplWcmWorkflowServiceImplProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComDayCqWcmWorkflowImplWcmWorkflowServiceImplProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     EventFilter == other.EventFilter ||
                     EventFilter != null &&
                     EventFilter.Equals(other.EventFilter)
                     ) &&
                 (
                     MinThreadPoolSize == other.MinThreadPoolSize ||
                     MinThreadPoolSize != null &&
                     MinThreadPoolSize.Equals(other.MinThreadPoolSize)
                 ) &&
                 (
                     MaxThreadPoolSize == other.MaxThreadPoolSize ||
                     MaxThreadPoolSize != null &&
                     MaxThreadPoolSize.Equals(other.MaxThreadPoolSize)
                 ) &&
                 (
                     CqWcmWorkflowTerminateOnActivate == other.CqWcmWorkflowTerminateOnActivate ||
                     CqWcmWorkflowTerminateOnActivate != null &&
                     CqWcmWorkflowTerminateOnActivate.Equals(other.CqWcmWorkflowTerminateOnActivate)
                 ) &&
                 (
                     CqWcmWorklfowTerminateExclusionList == other.CqWcmWorklfowTerminateExclusionList ||
                     CqWcmWorklfowTerminateExclusionList != null &&
                     CqWcmWorklfowTerminateExclusionList.Equals(other.CqWcmWorklfowTerminateExclusionList)
                 ));
        }