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);
     }
 }
        public bool Equals(DsfConsumeRabbitMQActivity other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            var isSourceEqual = CommonEqualityOps.AreObjectsEqual <IResource>(RabbitSource, other.RabbitSource);

            return(base.Equals(other) &&
                   string.Equals(Result, other.Result) &&
                   Prefetch == other.Prefetch &&
                   TimeOut == other.TimeOut &&
                   IsObject == other.IsObject &&
                   string.Equals(ObjectName, other.ObjectName) &&
                   RabbitMQSourceResourceId.Equals(other.RabbitMQSourceResourceId) &&
                   string.Equals(QueueName, other.QueueName) &&
                   string.Equals(DisplayName, other.DisplayName) &&
                   string.Equals(Response, other.Response) &&
                   string.Equals(Prefetch, other.Prefetch) &&
                   Acknowledge == other.Acknowledge &&
                   string.Equals(TimeOut, other.TimeOut) &&
                   ReQueue == other.ReQueue &&
                   isSourceEqual);
        }
Example #3
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);
            }
        }
#pragma warning disable S1541 // Methods and properties should not be too complex
        public bool Equals(DsfPublishRabbitMQActivity other)
#pragma warning restore S1541 // Methods and properties should not be too complex
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            var isSourceEqual = CommonEqualityOps.AreObjectsEqual <IResource>(RabbitMQSource, other.RabbitMQSource);

            return(base.Equals(other) &&
                   RabbitMQSourceResourceId.Equals(other.RabbitMQSourceResourceId) &&
                   string.Equals(QueueName, other.QueueName) &&
                   IsDurable == other.IsDurable &&
                   IsExclusive == other.IsExclusive &&
                   IsAutoDelete == other.IsAutoDelete &&
                   string.Equals(Message, other.Message) &&
                   string.Equals(DisplayName, other.DisplayName) &&
                   isSourceEqual);
        }
 public override IEnumerable <StateVariable> GetState()
 {
     return(new[] {
         new StateVariable
         {
             Name = "QueueName",
             Value = QueueName,
             Type = StateVariable.StateType.Input
         },
         new StateVariable
         {
             Name = "IsDurable",
             Value = IsDurable.ToString(),
             Type = StateVariable.StateType.Input
         },
         new StateVariable
         {
             Name = "IsExclusive",
             Value = IsExclusive.ToString(),
             Type = StateVariable.StateType.Input
         },
         new StateVariable
         {
             Name = "Message",
             Value = Message,
             Type = StateVariable.StateType.Input
         },
         new StateVariable
         {
             Name = "RabbitMQSourceResourceId",
             Value = RabbitMQSourceResourceId.ToString(),
             Type = StateVariable.StateType.Input
         }, new StateVariable
         {
             Name = "IsAutoDelete",
             Value = IsAutoDelete.ToString(),
             Type = StateVariable.StateType.Input
         },
         new StateVariable
         {
             Name = "Result",
             Value = Result,
             Type = StateVariable.StateType.Output
         }
     });
 }
 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);
     }
 }
        public bool Equals(DsfPublishRabbitMQActivity other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            var isSourceEqual = CommonEqualityOps.AreObjectsEqual <IResource>(RabbitMQSource, other.RabbitMQSource);

            return(base.Equals(other) &&
                   RabbitMQSourceResourceId.Equals(other.RabbitMQSourceResourceId) &&
                   string.Equals(QueueName, other.QueueName) &&
                   IsDurable == other.IsDurable &&
                   IsExclusive == other.IsExclusive &&
                   IsAutoDelete == other.IsAutoDelete &&
                   string.Equals(Message, other.Message) &&
                   string.Equals(DisplayName, other.DisplayName) &&
                   isSourceEqual);
        }
 public override IEnumerable <StateVariable> GetState()
 {
     return(new[] {
         new StateVariable
         {
             Name = "QueueName",
             Value = QueueName,
             Type = StateVariable.StateType.Input
         },
         new StateVariable
         {
             Name = "Acknowledge",
             Value = Acknowledge.ToString(),
             Type = StateVariable.StateType.Input
         },
         new StateVariable
         {
             Name = "IsObject",
             Value = IsObject.ToString(),
             Type = StateVariable.StateType.Input
         },
         new StateVariable
         {
             Name = "ObjectName",
             Value = ObjectName,
             Type = StateVariable.StateType.Input
         },
         new StateVariable
         {
             Name = "Prefetch",
             Value = Prefetch,
             Type = StateVariable.StateType.Input
         },
         new StateVariable
         {
             Name = "RabbitMQSourceResourceId",
             Value = RabbitMQSourceResourceId.ToString(),
             Type = StateVariable.StateType.Input
         }, new StateVariable
         {
             Name = "ReQueue",
             Value = ReQueue.ToString(),
             Type = StateVariable.StateType.Input
         }, new StateVariable
         {
             Name = "TimeOut",
             Value = TimeOut,
             Type = StateVariable.StateType.Input
         },
         new StateVariable
         {
             Name = "Result",
             Value = Result,
             Type = StateVariable.StateType.Output
         }
         ,
         new StateVariable
         {
             Name = "Response",
             Value = Response,
             Type = StateVariable.StateType.Output
         }
     });
 }