Ejemplo n.º 1
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 (Endpoints != null)
         {
             hashCode = hashCode * 59 + Endpoints.GetHashCode();
         }
         if (PullItems != null)
         {
             hashCode = hashCode * 59 + PullItems.GetHashCode();
         }
         if (PackageBuilderTarget != null)
         {
             hashCode = hashCode * 59 + PackageBuilderTarget.GetHashCode();
         }
         if (TransportSecretProviderTarget != null)
         {
             hashCode = hashCode * 59 + TransportSecretProviderTarget.GetHashCode();
         }
         return(hashCode);
     }
 }
Ejemplo n.º 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 (QueueProcessingEnabled != null)
         {
             hashCode = hashCode * 59 + QueueProcessingEnabled.GetHashCode();
         }
         if (PassiveQueues != null)
         {
             hashCode = hashCode * 59 + PassiveQueues.GetHashCode();
         }
         if (PackageExporterEndpoints != null)
         {
             hashCode = hashCode * 59 + PackageExporterEndpoints.GetHashCode();
         }
         if (PackageImporterEndpoints != null)
         {
             hashCode = hashCode * 59 + PackageImporterEndpoints.GetHashCode();
         }
         if (RetryStrategy != null)
         {
             hashCode = hashCode * 59 + RetryStrategy.GetHashCode();
         }
         if (RetryAttempts != null)
         {
             hashCode = hashCode * 59 + RetryAttempts.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);
     }
 }