예제 #1
0
 public void Describe(Description description)
 {
     description.ShortDescription            = "Governs the behavior and verbosity of the runtime diagnostics";
     description.Properties["Tracing Level"] = TraceLevel.ToString();
     description.Properties["Maximum Number of Requests to Keep"] = MaxRequests.ToString();
     description.AddList("Authorization Rules for Diagnostics", AuthorizationRights);
 }
 /// <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 (MaxConnections != null)
         {
             hashCode = hashCode * 59 + MaxConnections.GetHashCode();
         }
         if (MaxRequests != null)
         {
             hashCode = hashCode * 59 + MaxRequests.GetHashCode();
         }
         if (RequestTimeout != null)
         {
             hashCode = hashCode * 59 + RequestTimeout.GetHashCode();
         }
         if (LogDir != null)
         {
             hashCode = hashCode * 59 + LogDir.GetHashCode();
         }
         return(hashCode);
     }
 }
        /// <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)
                 ));
        }
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (Priority != 0)
                    {
                        hash ^= Priority.GetHashCode();
                    }
                    if (maxConnections_ != null)
                    {
                        hash ^= MaxConnections.GetHashCode();
                    }
                    if (maxPendingRequests_ != null)
                    {
                        hash ^= MaxPendingRequests.GetHashCode();
                    }
                    if (maxRequests_ != null)
                    {
                        hash ^= MaxRequests.GetHashCode();
                    }
                    if (maxRetries_ != null)
                    {
                        hash ^= MaxRetries.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
예제 #5
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)
                 ));
        }
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (Priority != global::Envoy.Api.V3Alpha.Core.RoutingPriority.Default)
                    {
                        hash ^= Priority.GetHashCode();
                    }
                    if (maxConnections_ != null)
                    {
                        hash ^= MaxConnections.GetHashCode();
                    }
                    if (maxPendingRequests_ != null)
                    {
                        hash ^= MaxPendingRequests.GetHashCode();
                    }
                    if (maxRequests_ != null)
                    {
                        hash ^= MaxRequests.GetHashCode();
                    }
                    if (maxRetries_ != null)
                    {
                        hash ^= MaxRetries.GetHashCode();
                    }
                    if (TrackRemaining != false)
                    {
                        hash ^= TrackRemaining.GetHashCode();
                    }
                    if (maxConnectionPools_ != null)
                    {
                        hash ^= MaxConnectionPools.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
예제 #7
0
 /// <summary>Returns a string that represents the current object.</summary>
 public override string ToString()
 {
     return(string.Format("ExtenderConfig [{0},{1},{2},[{3}]]", MaxRequests?.ToString() ?? "null", CalendarFirstTime?.ToString() ?? "null",
                          CalendarLastTime?.ToString() ?? "null", GetParentUrisString()));
 }