public override bool Equals(object obj) { if (ReferenceEquals(null, obj)) { return(false); } if (ReferenceEquals(this, obj)) { return(true); } if (obj.GetType() != GetType()) { return(false); } var other = (ServiceDiscoveryConfig)obj; return(Scope == other.Scope && RequestTimeout.Equals(other.RequestTimeout) && FirstAttemptDelaySeconds.Equals(other.FirstAttemptDelaySeconds) && MaxAttemptDelaySeconds.Equals(other.MaxAttemptDelaySeconds) && DelayMultiplier.Equals(other.DelayMultiplier) && Source == other.Source && string.Equals(Hosts, other.Hosts) && DefaultPort == other.DefaultPort && DefaultSlotNumber == other.DefaultSlotNumber && UseHttpsOverride == other.UseHttpsOverride && string.Equals(SecurityRole, other.SecurityRole) && Equals(CachingPolicy, other.CachingPolicy) && SuppressHealthCheckAfterServiceUnused.Equals(other.SuppressHealthCheckAfterServiceUnused)); }
/// <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) )); }
protected bool Equals(RequestData other) => RequestTimeout.Equals(other.RequestTimeout) && PingTimeout.Equals(other.PingTimeout) && KeepAliveTime == other.KeepAliveTime && KeepAliveInterval == other.KeepAliveInterval && Pipelined == other.Pipelined && HttpCompression == other.HttpCompression && Equals(Headers, other.Headers) && string.Equals(ProxyAddress, other.ProxyAddress) && string.Equals(ProxyUsername, other.ProxyUsername) && string.Equals(ProxyPassword, other.ProxyPassword) && DisableAutomaticProxyDetection == other.DisableAutomaticProxyDetection && Equals(BasicAuthorizationCredentials, other.BasicAuthorizationCredentials) && Equals(ConnectionSettings, other.ConnectionSettings) && Equals(MemoryStreamFactory, other.MemoryStreamFactory);
/// <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) )); }