/// <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 (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Title != null)
         {
             hashCode = hashCode * 59 + Title.GetHashCode();
         }
         if (Details != null)
         {
             hashCode = hashCode * 59 + Details.GetHashCode();
         }
         if (Enabled != null)
         {
             hashCode = hashCode * 59 + Enabled.GetHashCode();
         }
         if (ServiceName != null)
         {
             hashCode = hashCode * 59 + ServiceName.GetHashCode();
         }
         if (LogLevel != null)
         {
             hashCode = hashCode * 59 + LogLevel.GetHashCode();
         }
         if (AllowedRoots != null)
         {
             hashCode = hashCode * 59 + AllowedRoots.GetHashCode();
         }
         if (RequestAuthorizationStrategyTarget != null)
         {
             hashCode = hashCode * 59 + RequestAuthorizationStrategyTarget.GetHashCode();
         }
         if (QueueProviderFactoryTarget != null)
         {
             hashCode = hashCode * 59 + QueueProviderFactoryTarget.GetHashCode();
         }
         if (PackageBuilderTarget != null)
         {
             hashCode = hashCode * 59 + PackageBuilderTarget.GetHashCode();
         }
         if (TriggersTarget != null)
         {
             hashCode = hashCode * 59 + TriggersTarget.GetHashCode();
         }
         if (PriorityQueues != null)
         {
             hashCode = hashCode * 59 + PriorityQueues.GetHashCode();
         }
         return(hashCode);
     }
 }
示例#2
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 (Name != null)
             hashCode = hashCode * 59 + Name.GetHashCode();
             if (Title != null)
             hashCode = hashCode * 59 + Title.GetHashCode();
             if (Details != null)
             hashCode = hashCode * 59 + Details.GetHashCode();
             if (Enabled != null)
             hashCode = hashCode * 59 + Enabled.GetHashCode();
             if (ServiceName != null)
             hashCode = hashCode * 59 + ServiceName.GetHashCode();
             if (LogLevel != null)
             hashCode = hashCode * 59 + LogLevel.GetHashCode();
             if (AllowedRoots != null)
             hashCode = hashCode * 59 + AllowedRoots.GetHashCode();
             if (QueueProcessingEnabled != null)
             hashCode = hashCode * 59 + QueueProcessingEnabled.GetHashCode();
             if (PackageImporterEndpoints != null)
             hashCode = hashCode * 59 + PackageImporterEndpoints.GetHashCode();
             if (PassiveQueues != null)
             hashCode = hashCode * 59 + PassiveQueues.GetHashCode();
             if (PriorityQueues != null)
             hashCode = hashCode * 59 + PriorityQueues.GetHashCode();
             if (RetryStrategy != null)
             hashCode = hashCode * 59 + RetryStrategy.GetHashCode();
             if (RetryAttempts != null)
             hashCode = hashCode * 59 + RetryAttempts.GetHashCode();
             if (RequestAuthorizationStrategyTarget != null)
             hashCode = hashCode * 59 + RequestAuthorizationStrategyTarget.GetHashCode();
             if (TransportSecretProviderTarget != null)
             hashCode = hashCode * 59 + TransportSecretProviderTarget.GetHashCode();
             if (PackageBuilderTarget != null)
             hashCode = hashCode * 59 + PackageBuilderTarget.GetHashCode();
             if (TriggersTarget != null)
             hashCode = hashCode * 59 + TriggersTarget.GetHashCode();
             if (QueueProvider != null)
             hashCode = hashCode * 59 + QueueProvider.GetHashCode();
             if (AsyncDelivery != null)
             hashCode = hashCode * 59 + AsyncDelivery.GetHashCode();
             if (HttpConnTimeout != null)
             hashCode = hashCode * 59 + HttpConnTimeout.GetHashCode();
         return hashCode;
     }
 }
        /// <summary>
        /// Returns true if OrgApacheSlingDistributionAgentImplSimpleDistributionAgentFactorProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheSlingDistributionAgentImplSimpleDistributionAgentFactorProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheSlingDistributionAgentImplSimpleDistributionAgentFactorProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                     ) &&
                 (
                     Title == other.Title ||
                     Title != null &&
                     Title.Equals(other.Title)
                 ) &&
                 (
                     Details == other.Details ||
                     Details != null &&
                     Details.Equals(other.Details)
                 ) &&
                 (
                     Enabled == other.Enabled ||
                     Enabled != null &&
                     Enabled.Equals(other.Enabled)
                 ) &&
                 (
                     ServiceName == other.ServiceName ||
                     ServiceName != null &&
                     ServiceName.Equals(other.ServiceName)
                 ) &&
                 (
                     LogLevel == other.LogLevel ||
                     LogLevel != null &&
                     LogLevel.Equals(other.LogLevel)
                 ) &&
                 (
                     QueueProcessingEnabled == other.QueueProcessingEnabled ||
                     QueueProcessingEnabled != null &&
                     QueueProcessingEnabled.Equals(other.QueueProcessingEnabled)
                 ) &&
                 (
                     PackageExporterTarget == other.PackageExporterTarget ||
                     PackageExporterTarget != null &&
                     PackageExporterTarget.Equals(other.PackageExporterTarget)
                 ) &&
                 (
                     PackageImporterTarget == other.PackageImporterTarget ||
                     PackageImporterTarget != null &&
                     PackageImporterTarget.Equals(other.PackageImporterTarget)
                 ) &&
                 (
                     RequestAuthorizationStrategyTarget == other.RequestAuthorizationStrategyTarget ||
                     RequestAuthorizationStrategyTarget != null &&
                     RequestAuthorizationStrategyTarget.Equals(other.RequestAuthorizationStrategyTarget)
                 ) &&
                 (
                     TriggersTarget == other.TriggersTarget ||
                     TriggersTarget != null &&
                     TriggersTarget.Equals(other.TriggersTarget)
                 ));
        }
示例#4
0
        /// <summary>
        /// Returns true if OrgApacheSlingDistributionAgentImplSyncDistributionAgentFactoryProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheSlingDistributionAgentImplSyncDistributionAgentFactoryProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheSlingDistributionAgentImplSyncDistributionAgentFactoryProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                     ) &&
                 (
                     Title == other.Title ||
                     Title != null &&
                     Title.Equals(other.Title)
                 ) &&
                 (
                     Details == other.Details ||
                     Details != null &&
                     Details.Equals(other.Details)
                 ) &&
                 (
                     Enabled == other.Enabled ||
                     Enabled != null &&
                     Enabled.Equals(other.Enabled)
                 ) &&
                 (
                     ServiceName == other.ServiceName ||
                     ServiceName != null &&
                     ServiceName.Equals(other.ServiceName)
                 ) &&
                 (
                     LogLevel == other.LogLevel ||
                     LogLevel != null &&
                     LogLevel.Equals(other.LogLevel)
                 ) &&
                 (
                     QueueProcessingEnabled == other.QueueProcessingEnabled ||
                     QueueProcessingEnabled != null &&
                     QueueProcessingEnabled.Equals(other.QueueProcessingEnabled)
                 ) &&
                 (
                     PassiveQueues == other.PassiveQueues ||
                     PassiveQueues != null &&
                     PassiveQueues.Equals(other.PassiveQueues)
                 ) &&
                 (
                     PackageExporterEndpoints == other.PackageExporterEndpoints ||
                     PackageExporterEndpoints != null &&
                     PackageExporterEndpoints.Equals(other.PackageExporterEndpoints)
                 ) &&
                 (
                     PackageImporterEndpoints == other.PackageImporterEndpoints ||
                     PackageImporterEndpoints != null &&
                     PackageImporterEndpoints.Equals(other.PackageImporterEndpoints)
                 ) &&
                 (
                     RetryStrategy == other.RetryStrategy ||
                     RetryStrategy != null &&
                     RetryStrategy.Equals(other.RetryStrategy)
                 ) &&
                 (
                     RetryAttempts == other.RetryAttempts ||
                     RetryAttempts != null &&
                     RetryAttempts.Equals(other.RetryAttempts)
                 ) &&
                 (
                     PullItems == other.PullItems ||
                     PullItems != null &&
                     PullItems.Equals(other.PullItems)
                 ) &&
                 (
                     HttpConnTimeout == other.HttpConnTimeout ||
                     HttpConnTimeout != null &&
                     HttpConnTimeout.Equals(other.HttpConnTimeout)
                 ) &&
                 (
                     RequestAuthorizationStrategyTarget == other.RequestAuthorizationStrategyTarget ||
                     RequestAuthorizationStrategyTarget != null &&
                     RequestAuthorizationStrategyTarget.Equals(other.RequestAuthorizationStrategyTarget)
                 ) &&
                 (
                     TransportSecretProviderTarget == other.TransportSecretProviderTarget ||
                     TransportSecretProviderTarget != null &&
                     TransportSecretProviderTarget.Equals(other.TransportSecretProviderTarget)
                 ) &&
                 (
                     PackageBuilderTarget == other.PackageBuilderTarget ||
                     PackageBuilderTarget != null &&
                     PackageBuilderTarget.Equals(other.PackageBuilderTarget)
                 ) &&
                 (
                     TriggersTarget == other.TriggersTarget ||
                     TriggersTarget != null &&
                     TriggersTarget.Equals(other.TriggersTarget)
                 ));
        }
示例#5
0
        /// <summary>
        /// Returns true if OrgApacheSlingDistributionAgentImplForwardDistributionAgentFactoProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheSlingDistributionAgentImplForwardDistributionAgentFactoProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheSlingDistributionAgentImplForwardDistributionAgentFactoProperties other)
        {
            if (other is null) return false;
            if (ReferenceEquals(this, other)) return true;

            return 
                (
                    Name == other.Name ||
                    Name != null &&
                    Name.Equals(other.Name)
                ) && 
                (
                    Title == other.Title ||
                    Title != null &&
                    Title.Equals(other.Title)
                ) && 
                (
                    Details == other.Details ||
                    Details != null &&
                    Details.Equals(other.Details)
                ) && 
                (
                    Enabled == other.Enabled ||
                    Enabled != null &&
                    Enabled.Equals(other.Enabled)
                ) && 
                (
                    ServiceName == other.ServiceName ||
                    ServiceName != null &&
                    ServiceName.Equals(other.ServiceName)
                ) && 
                (
                    LogLevel == other.LogLevel ||
                    LogLevel != null &&
                    LogLevel.Equals(other.LogLevel)
                ) && 
                (
                    AllowedRoots == other.AllowedRoots ||
                    AllowedRoots != null &&
                    AllowedRoots.Equals(other.AllowedRoots)
                ) && 
                (
                    QueueProcessingEnabled == other.QueueProcessingEnabled ||
                    QueueProcessingEnabled != null &&
                    QueueProcessingEnabled.Equals(other.QueueProcessingEnabled)
                ) && 
                (
                    PackageImporterEndpoints == other.PackageImporterEndpoints ||
                    PackageImporterEndpoints != null &&
                    PackageImporterEndpoints.Equals(other.PackageImporterEndpoints)
                ) && 
                (
                    PassiveQueues == other.PassiveQueues ||
                    PassiveQueues != null &&
                    PassiveQueues.Equals(other.PassiveQueues)
                ) && 
                (
                    PriorityQueues == other.PriorityQueues ||
                    PriorityQueues != null &&
                    PriorityQueues.Equals(other.PriorityQueues)
                ) && 
                (
                    RetryStrategy == other.RetryStrategy ||
                    RetryStrategy != null &&
                    RetryStrategy.Equals(other.RetryStrategy)
                ) && 
                (
                    RetryAttempts == other.RetryAttempts ||
                    RetryAttempts != null &&
                    RetryAttempts.Equals(other.RetryAttempts)
                ) && 
                (
                    RequestAuthorizationStrategyTarget == other.RequestAuthorizationStrategyTarget ||
                    RequestAuthorizationStrategyTarget != null &&
                    RequestAuthorizationStrategyTarget.Equals(other.RequestAuthorizationStrategyTarget)
                ) && 
                (
                    TransportSecretProviderTarget == other.TransportSecretProviderTarget ||
                    TransportSecretProviderTarget != null &&
                    TransportSecretProviderTarget.Equals(other.TransportSecretProviderTarget)
                ) && 
                (
                    PackageBuilderTarget == other.PackageBuilderTarget ||
                    PackageBuilderTarget != null &&
                    PackageBuilderTarget.Equals(other.PackageBuilderTarget)
                ) && 
                (
                    TriggersTarget == other.TriggersTarget ||
                    TriggersTarget != null &&
                    TriggersTarget.Equals(other.TriggersTarget)
                ) && 
                (
                    QueueProvider == other.QueueProvider ||
                    QueueProvider != null &&
                    QueueProvider.Equals(other.QueueProvider)
                ) && 
                (
                    AsyncDelivery == other.AsyncDelivery ||
                    AsyncDelivery != null &&
                    AsyncDelivery.Equals(other.AsyncDelivery)
                ) && 
                (
                    HttpConnTimeout == other.HttpConnTimeout ||
                    HttpConnTimeout != null &&
                    HttpConnTimeout.Equals(other.HttpConnTimeout)
                );
        }
 /// <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 (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Title != null)
         {
             hashCode = hashCode * 59 + Title.GetHashCode();
         }
         if (Details != null)
         {
             hashCode = hashCode * 59 + Details.GetHashCode();
         }
         if (Enabled != null)
         {
             hashCode = hashCode * 59 + Enabled.GetHashCode();
         }
         if (ServiceName != null)
         {
             hashCode = hashCode * 59 + ServiceName.GetHashCode();
         }
         if (LogLevel != null)
         {
             hashCode = hashCode * 59 + LogLevel.GetHashCode();
         }
         if (QueueProcessingEnabled != null)
         {
             hashCode = hashCode * 59 + QueueProcessingEnabled.GetHashCode();
         }
         if (PackageExporterEndpoints != null)
         {
             hashCode = hashCode * 59 + PackageExporterEndpoints.GetHashCode();
         }
         if (PullItems != null)
         {
             hashCode = hashCode * 59 + PullItems.GetHashCode();
         }
         if (HttpConnTimeout != null)
         {
             hashCode = hashCode * 59 + HttpConnTimeout.GetHashCode();
         }
         if (RequestAuthorizationStrategyTarget != null)
         {
             hashCode = hashCode * 59 + RequestAuthorizationStrategyTarget.GetHashCode();
         }
         if (TransportSecretProviderTarget != null)
         {
             hashCode = hashCode * 59 + TransportSecretProviderTarget.GetHashCode();
         }
         if (PackageBuilderTarget != null)
         {
             hashCode = hashCode * 59 + PackageBuilderTarget.GetHashCode();
         }
         if (TriggersTarget != null)
         {
             hashCode = hashCode * 59 + TriggersTarget.GetHashCode();
         }
         return(hashCode);
     }
 }