Beispiel #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 (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 (AllowedRoots != null)
             hashCode = hashCode * 59 + AllowedRoots.GetHashCode();
             if (QueueProcessingEnabled != null)
             hashCode = hashCode * 59 + QueueProcessingEnabled.GetHashCode();
             if (PackageImporterEndpoints != null)
             hashCode = hashCode * 59 + PackageImporterEndpoints.GetHashCode();
             if (PassiveQueues != null)
             hashCode = hashCode * 59 + PassiveQueues.GetHashCode();
             if (PriorityQueues != null)
             hashCode = hashCode * 59 + PriorityQueues.GetHashCode();
             if (RetryStrategy != null)
             hashCode = hashCode * 59 + RetryStrategy.GetHashCode();
             if (RetryAttempts != null)
             hashCode = hashCode * 59 + RetryAttempts.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();
             if (QueueProvider != null)
             hashCode = hashCode * 59 + QueueProvider.GetHashCode();
             if (AsyncDelivery != null)
             hashCode = hashCode * 59 + AsyncDelivery.GetHashCode();
             if (HttpConnTimeout != null)
             hashCode = hashCode * 59 + HttpConnTimeout.GetHashCode();
         return hashCode;
     }
 }
Beispiel #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 (TranslationFactory != null)
         {
             hashCode = hashCode * 59 + TranslationFactory.GetHashCode();
         }
         if (DefaultConnectorLabel != null)
         {
             hashCode = hashCode * 59 + DefaultConnectorLabel.GetHashCode();
         }
         if (DefaultConnectorAttribution != null)
         {
             hashCode = hashCode * 59 + DefaultConnectorAttribution.GetHashCode();
         }
         if (DefaultConnectorWorkspaceId != null)
         {
             hashCode = hashCode * 59 + DefaultConnectorWorkspaceId.GetHashCode();
         }
         if (DefaultConnectorSubscriptionKey != null)
         {
             hashCode = hashCode * 59 + DefaultConnectorSubscriptionKey.GetHashCode();
         }
         if (LanguageMapLocation != null)
         {
             hashCode = hashCode * 59 + LanguageMapLocation.GetHashCode();
         }
         if (CategoryMapLocation != null)
         {
             hashCode = hashCode * 59 + CategoryMapLocation.GetHashCode();
         }
         if (RetryAttempts != null)
         {
             hashCode = hashCode * 59 + RetryAttempts.GetHashCode();
         }
         if (TimeoutCount != null)
         {
             hashCode = hashCode * 59 + TimeoutCount.GetHashCode();
         }
         return(hashCode);
     }
 }