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

            return
                ((
                     ProxyEnabled == other.ProxyEnabled ||
                     ProxyEnabled != null &&
                     ProxyEnabled.Equals(other.ProxyEnabled)
                     ) &&
                 (
                     ProxyHost == other.ProxyHost ||
                     ProxyHost != null &&
                     ProxyHost.Equals(other.ProxyHost)
                 ) &&
                 (
                     ProxyUser == other.ProxyUser ||
                     ProxyUser != null &&
                     ProxyUser.Equals(other.ProxyUser)
                 ) &&
                 (
                     ProxyPassword == other.ProxyPassword ||
                     ProxyPassword != null &&
                     ProxyPassword.Equals(other.ProxyPassword)
                 ) &&
                 (
                     ProxyNtlmHost == other.ProxyNtlmHost ||
                     ProxyNtlmHost != null &&
                     ProxyNtlmHost.Equals(other.ProxyNtlmHost)
                 ) &&
                 (
                     ProxyNtlmDomain == other.ProxyNtlmDomain ||
                     ProxyNtlmDomain != null &&
                     ProxyNtlmDomain.Equals(other.ProxyNtlmDomain)
                 ) &&
                 (
                     ProxyExceptions == other.ProxyExceptions ||
                     ProxyExceptions != null &&
                     ProxyExceptions.Equals(other.ProxyExceptions)
                 ));
        }
Beispiel #2
0
        /// <summary>
        /// Returns true if OrgApacheHttpProxyconfiguratorProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheHttpProxyconfiguratorProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheHttpProxyconfiguratorProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ProxyEnabled == other.ProxyEnabled ||
                     ProxyEnabled != null &&
                     ProxyEnabled.Equals(other.ProxyEnabled)
                     ) &&
                 (
                     ProxyHost == other.ProxyHost ||
                     ProxyHost != null &&
                     ProxyHost.Equals(other.ProxyHost)
                 ) &&
                 (
                     ProxyPort == other.ProxyPort ||
                     ProxyPort != null &&
                     ProxyPort.Equals(other.ProxyPort)
                 ) &&
                 (
                     ProxyUser == other.ProxyUser ||
                     ProxyUser != null &&
                     ProxyUser.Equals(other.ProxyUser)
                 ) &&
                 (
                     ProxyPassword == other.ProxyPassword ||
                     ProxyPassword != null &&
                     ProxyPassword.Equals(other.ProxyPassword)
                 ) &&
                 (
                     ProxyExceptions == other.ProxyExceptions ||
                     ProxyExceptions != null &&
                     ProxyExceptions.Equals(other.ProxyExceptions)
                 ));
        }