/// <summary>
        /// Returns true if ComAdobeXmpWorkerFilesNcommXMPFilesNCommProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeXmpWorkerFilesNcommXMPFilesNCommProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeXmpWorkerFilesNcommXMPFilesNCommProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     MaxConnections == other.MaxConnections ||
                     MaxConnections != null &&
                     MaxConnections.Equals(other.MaxConnections)
                     ) &&
                 (
                     MaxRequests == other.MaxRequests ||
                     MaxRequests != null &&
                     MaxRequests.Equals(other.MaxRequests)
                 ) &&
                 (
                     RequestTimeout == other.RequestTimeout ||
                     RequestTimeout != null &&
                     RequestTimeout.Equals(other.RequestTimeout)
                 ) &&
                 (
                     LogDir == other.LogDir ||
                     LogDir != null &&
                     LogDir.Equals(other.LogDir)
                 ));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Returns true if ComAdobeOctopusNcommBootstrapProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeOctopusNcommBootstrapProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeOctopusNcommBootstrapProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     MaxConnections == other.MaxConnections ||
                     MaxConnections != null &&
                     MaxConnections.Equals(other.MaxConnections)
                     ) &&
                 (
                     MaxRequests == other.MaxRequests ||
                     MaxRequests != null &&
                     MaxRequests.Equals(other.MaxRequests)
                 ) &&
                 (
                     RequestTimeout == other.RequestTimeout ||
                     RequestTimeout != null &&
                     RequestTimeout.Equals(other.RequestTimeout)
                 ) &&
                 (
                     RequestRetries == other.RequestRetries ||
                     RequestRetries != null &&
                     RequestRetries.Equals(other.RequestRetries)
                 ) &&
                 (
                     LaunchTimeout == other.LaunchTimeout ||
                     LaunchTimeout != null &&
                     LaunchTimeout.Equals(other.LaunchTimeout)
                 ));
        }