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 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
         }
     });
 }