public override string ToString() { var detailsJson = "{}"; if (Details != null) { detailsJson = JsonConvert.SerializeObject(Details); } var argumentsJson = "{}"; if (Arguments != null) { argumentsJson = JsonConvert.SerializeObject(Arguments); } var json = "[" + MessageId + "," + RequestId + ",{\"acknowledge\":" + Acknowledge.ToString().ToLower() + ",\"exclude_me\":" + ExcludeMe.ToString().ToLower() + "},\"" + Topic + "\"," + detailsJson + "," + argumentsJson + "]"; return(json); }
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 } }); }