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 (QueuePriority != null)
         {
             hashCode = hashCode * 59 + QueuePriority.GetHashCode();
         }
         if (QueueRetries != null)
         {
             hashCode = hashCode * 59 + QueueRetries.GetHashCode();
         }
         if (QueueRetrydelay != null)
         {
             hashCode = hashCode * 59 + QueueRetrydelay.GetHashCode();
         }
         if (QueueMaxparallel != null)
         {
             hashCode = hashCode * 59 + QueueMaxparallel.GetHashCode();
         }
         return(hashCode);
     }
 }
 /// <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 (QueueName != null)
         {
             hashCode = hashCode * 59 + QueueName.GetHashCode();
         }
         if (QueueTopics != null)
         {
             hashCode = hashCode * 59 + QueueTopics.GetHashCode();
         }
         if (QueueType != null)
         {
             hashCode = hashCode * 59 + QueueType.GetHashCode();
         }
         if (QueuePriority != null)
         {
             hashCode = hashCode * 59 + QueuePriority.GetHashCode();
         }
         if (QueueRetries != null)
         {
             hashCode = hashCode * 59 + QueueRetries.GetHashCode();
         }
         if (QueueRetrydelay != null)
         {
             hashCode = hashCode * 59 + QueueRetrydelay.GetHashCode();
         }
         if (QueueMaxparallel != null)
         {
             hashCode = hashCode * 59 + QueueMaxparallel.GetHashCode();
         }
         if (QueueKeepJobs != null)
         {
             hashCode = hashCode * 59 + QueueKeepJobs.GetHashCode();
         }
         if (QueuePreferRunOnCreationInstance != null)
         {
             hashCode = hashCode * 59 + QueuePreferRunOnCreationInstance.GetHashCode();
         }
         if (QueueThreadPoolSize != null)
         {
             hashCode = hashCode * 59 + QueueThreadPoolSize.GetHashCode();
         }
         if (ServiceRanking != null)
         {
             hashCode = hashCode * 59 + ServiceRanking.GetHashCode();
         }
         return(hashCode);
     }
 }