コード例 #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 (GraniteWorkflowinboxSortPropertyName != null)
         {
             hashCode = hashCode * 59 + GraniteWorkflowinboxSortPropertyName.GetHashCode();
         }
         if (GraniteWorkflowinboxSortOrder != null)
         {
             hashCode = hashCode * 59 + GraniteWorkflowinboxSortOrder.GetHashCode();
         }
         if (CqWorkflowJobRetry != null)
         {
             hashCode = hashCode * 59 + CqWorkflowJobRetry.GetHashCode();
         }
         if (CqWorkflowSuperuser != null)
         {
             hashCode = hashCode * 59 + CqWorkflowSuperuser.GetHashCode();
         }
         if (GraniteWorkflowInboxQuerySize != null)
         {
             hashCode = hashCode * 59 + GraniteWorkflowInboxQuerySize.GetHashCode();
         }
         if (GraniteWorkflowAdminUserGroupFilter != null)
         {
             hashCode = hashCode * 59 + GraniteWorkflowAdminUserGroupFilter.GetHashCode();
         }
         if (GraniteWorkflowEnforceWorkitemAssigneePermissions != null)
         {
             hashCode = hashCode * 59 + GraniteWorkflowEnforceWorkitemAssigneePermissions.GetHashCode();
         }
         if (GraniteWorkflowEnforceWorkflowInitiatorPermissions != null)
         {
             hashCode = hashCode * 59 + GraniteWorkflowEnforceWorkflowInitiatorPermissions.GetHashCode();
         }
         if (GraniteWorkflowInjectTenantIdInJobTopics != null)
         {
             hashCode = hashCode * 59 + GraniteWorkflowInjectTenantIdInJobTopics.GetHashCode();
         }
         if (GraniteWorkflowMaxPurgeSaveThreshold != null)
         {
             hashCode = hashCode * 59 + GraniteWorkflowMaxPurgeSaveThreshold.GetHashCode();
         }
         if (GraniteWorkflowMaxPurgeQueryCount != null)
         {
             hashCode = hashCode * 59 + GraniteWorkflowMaxPurgeQueryCount.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #2
0
        /// <summary>
        /// Returns true if ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     GraniteWorkflowinboxSortPropertyName == other.GraniteWorkflowinboxSortPropertyName ||
                     GraniteWorkflowinboxSortPropertyName != null &&
                     GraniteWorkflowinboxSortPropertyName.Equals(other.GraniteWorkflowinboxSortPropertyName)
                     ) &&
                 (
                     GraniteWorkflowinboxSortOrder == other.GraniteWorkflowinboxSortOrder ||
                     GraniteWorkflowinboxSortOrder != null &&
                     GraniteWorkflowinboxSortOrder.Equals(other.GraniteWorkflowinboxSortOrder)
                 ) &&
                 (
                     CqWorkflowJobRetry == other.CqWorkflowJobRetry ||
                     CqWorkflowJobRetry != null &&
                     CqWorkflowJobRetry.Equals(other.CqWorkflowJobRetry)
                 ) &&
                 (
                     CqWorkflowSuperuser == other.CqWorkflowSuperuser ||
                     CqWorkflowSuperuser != null &&
                     CqWorkflowSuperuser.Equals(other.CqWorkflowSuperuser)
                 ) &&
                 (
                     GraniteWorkflowInboxQuerySize == other.GraniteWorkflowInboxQuerySize ||
                     GraniteWorkflowInboxQuerySize != null &&
                     GraniteWorkflowInboxQuerySize.Equals(other.GraniteWorkflowInboxQuerySize)
                 ) &&
                 (
                     GraniteWorkflowAdminUserGroupFilter == other.GraniteWorkflowAdminUserGroupFilter ||
                     GraniteWorkflowAdminUserGroupFilter != null &&
                     GraniteWorkflowAdminUserGroupFilter.Equals(other.GraniteWorkflowAdminUserGroupFilter)
                 ) &&
                 (
                     GraniteWorkflowEnforceWorkitemAssigneePermissions == other.GraniteWorkflowEnforceWorkitemAssigneePermissions ||
                     GraniteWorkflowEnforceWorkitemAssigneePermissions != null &&
                     GraniteWorkflowEnforceWorkitemAssigneePermissions.Equals(other.GraniteWorkflowEnforceWorkitemAssigneePermissions)
                 ) &&
                 (
                     GraniteWorkflowEnforceWorkflowInitiatorPermissions == other.GraniteWorkflowEnforceWorkflowInitiatorPermissions ||
                     GraniteWorkflowEnforceWorkflowInitiatorPermissions != null &&
                     GraniteWorkflowEnforceWorkflowInitiatorPermissions.Equals(other.GraniteWorkflowEnforceWorkflowInitiatorPermissions)
                 ) &&
                 (
                     GraniteWorkflowInjectTenantIdInJobTopics == other.GraniteWorkflowInjectTenantIdInJobTopics ||
                     GraniteWorkflowInjectTenantIdInJobTopics != null &&
                     GraniteWorkflowInjectTenantIdInJobTopics.Equals(other.GraniteWorkflowInjectTenantIdInJobTopics)
                 ) &&
                 (
                     GraniteWorkflowMaxPurgeSaveThreshold == other.GraniteWorkflowMaxPurgeSaveThreshold ||
                     GraniteWorkflowMaxPurgeSaveThreshold != null &&
                     GraniteWorkflowMaxPurgeSaveThreshold.Equals(other.GraniteWorkflowMaxPurgeSaveThreshold)
                 ) &&
                 (
                     GraniteWorkflowMaxPurgeQueryCount == other.GraniteWorkflowMaxPurgeQueryCount ||
                     GraniteWorkflowMaxPurgeQueryCount != null &&
                     GraniteWorkflowMaxPurgeQueryCount.Equals(other.GraniteWorkflowMaxPurgeQueryCount)
                 ));
        }