Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (_messages != null ? _messages.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Result != null ? Result.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ _timeOut;
         hashCode = (hashCode * 397) ^ IsObject.GetHashCode();
         hashCode = (hashCode * 397) ^ (ObjectName != null ? ObjectName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DisplayName != null ? DisplayName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ RabbitMQSourceResourceId.GetHashCode();
         hashCode = (hashCode * 397) ^ (QueueName != null ? QueueName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Response != null ? Response.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Prefetch != null ? Prefetch.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Acknowledge.GetHashCode();
         hashCode = (hashCode * 397) ^ (TimeOut != null ? TimeOut.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ReQueue.GetHashCode();
         hashCode = (hashCode * 397) ^ (Consumer != null ? Consumer.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Connection != null ? Connection.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Channel != null ? Channel.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RabbitSource != null ? RabbitSource.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
#pragma warning disable S1541 // Methods and properties should not be too complex
        public override int GetHashCode()
#pragma warning restore S1541 // Methods and properties should not be too complex
        {
            unchecked
            {
                var hashCode = base.GetHashCode();
                hashCode = (hashCode * 397) ^ (_messages != null ? _messages.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Result != null ? Result.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ _timeOut;
                hashCode = (hashCode * 397) ^ IsObject.GetHashCode();
                hashCode = (hashCode * 397) ^ (ObjectName != null ? ObjectName.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (DisplayName != null ? DisplayName.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ RabbitMQSourceResourceId.GetHashCode();
                hashCode = (hashCode * 397) ^ (QueueName != null ? QueueName.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Response != null ? Response.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Prefetch != null ? Prefetch.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Acknowledge.GetHashCode();
                hashCode = (hashCode * 397) ^ (TimeOut != null ? TimeOut.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ ReQueue.GetHashCode();
                hashCode = (hashCode * 397) ^ (Consumer != null ? Consumer.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Connection != null ? Connection.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Channel != null ? Channel.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (RabbitSource != null ? RabbitSource.GetHashCode() : 0);
                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);
     }
 }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Protocol != null ? Protocol.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TopicName != null ? TopicName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (QueueName != null ? QueueName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SubscriptionName != null ? SubscriptionName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ConnectionName != null ? ConnectionName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Durable.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 5
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (Broker != null ? Broker.GetHashCode() : 0);
         result = (result * 397) ^ (VirtualHost != null ? VirtualHost.GetHashCode() : 0);
         result = (result * 397) ^ (Username != null ? Username.GetHashCode() : 0);
         result = (result * 397) ^ (Password != null ? Password.GetHashCode() : 0);
         result = (result * 397) ^ (Exchange != null ? Exchange.GetHashCode() : 0);
         result = (result * 397) ^ (QueueName != null ? QueueName.GetHashCode() : 0);
         result = (result * 397) ^ (RoutingKeys != null ? RoutingKeys.GetHashCode() : 0);
         result = (result * 397) ^ RouteByType.GetHashCode();
         return(result);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ RabbitMQSourceResourceId.GetHashCode();
         hashCode = (hashCode * 397) ^ (QueueName != null ? QueueName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DisplayName != null ? DisplayName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsDurable.GetHashCode();
         hashCode = (hashCode * 397) ^ IsExclusive.GetHashCode();
         hashCode = (hashCode * 397) ^ IsAutoDelete.GetHashCode();
         hashCode = (hashCode * 397) ^ (Message != null ? Message.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Connection != null ? Connection.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Channel != null ? Channel.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RabbitMQSource != null ? RabbitMQSource.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (QueueName.Length != 0)
            {
                hash ^= QueueName.GetHashCode();
            }
            hash ^= enqueueOpName_.GetHashCode();
            if (CloseOpName.Length != 0)
            {
                hash ^= CloseOpName.GetHashCode();
            }
            if (CancelOpName.Length != 0)
            {
                hash ^= CancelOpName.GetHashCode();
            }
            hash ^= queueClosedExceptionTypes_.GetHashCode();
            return(hash);
        }
 public override int GetHashCode()
 {
     return(QueueName.GetHashCode());
 }
 public override int GetHashCode()
 {
     unchecked
     {
         return(((_publisherUri != null ? _publisherUri.GetHashCode() : 0) * 397) ^ (_subscriptionQueueName != null ? _subscriptionQueueName.GetHashCode() : 0));
     }
 }