public TransStream GetQueueReport(IQueueMessage message) { MQueue queue = Get(message.Host); if (queue == null) { var ack = new QueueItem()//MessageState.QueueNotFound, "QueueNotFound: " + message.Host, null, message.Host); { MessageState = MessageState.QueueNotFound, Label = "QueueNotFound: " + message.Host, Host = message.Host }; Logger.Info("QueueController GetQueueReport QueueNotFound : {0}", message.Host); return(ack.ToTransStream()); } var report = queue.GetReport(); string result = null; if (report != null) { result = Nistec.Serialization.JsonSerializer.Serialize(report); } var item = new QueueItem()//MessageState.Ok, result, null, message.Host); { MessageState = MessageState.Ok, Label = result, Host = message.Host }; item.SetBody(report); Logger.Info("QueueController GetQueueReport : {0}", result); return(item.ToTransStream()); }