public QueueMessagesVisualization get_messages_details_Port_QueueName(MessagesInputModel input)
        {
            var queueManager = _queues.AllQueueManagers.Single(x => x.Endpoint.Port == input.Port);

            var visualization = new QueueMessagesVisualization();
            if (input.QueueName == "outgoing")
            {
                visualization.Messages = new SendingMessagesTableTag(queueManager.GetMessagesCurrentlySending());
            }
            else if (input.QueueName == "outgoing_history")
            {
                visualization.Messages = new SendingMessagesTableTag(queueManager.GetAllSentMessages());
            }
            else if (input.QueueName.EndsWith("_history"))
            {
                visualization.Messages = new MessagesTableTag(queueManager.GetAllProcessedMessages(input.QueueName.Replace("_history", string.Empty)));
            }
            else
            {
                visualization.Messages = new MessagesTableTag(queueManager.GetAllMessages(input.QueueName, null));
            }
            return visualization;
        }
        public QueueMessagesVisualization get_messages_details_Port_QueueName(MessagesInputModel input)
        {
            var request = new QueueMessageRetrievalRequest
            {
                Port      = input.Port,
                QueueName = input.QueueName
            };

            var messages = _queueMessageRetrieval.GetAllMessagesInQueue(request).Select(msg => new QueueMessage
            {
                InternalMessage   = msg,
                OriginalQueueName = input.QueueName,
                PortNumber        = input.Port
            });
            var outgoing = input.QueueName == "outgoing" || input.QueueName == "outgoing_history";

            return(new QueueMessagesVisualization
            {
                QueueName = input.QueueName,
                Messages = outgoing
                    ? new SendingMessagesTableTag(messages, _urls)
                    : new MessagesTableTag(messages, _urls)
            });
        }
        public QueueMessagesVisualization get_messages_details_Port_QueueName(MessagesInputModel input)
        {
            var request = new QueueMessageRetrievalRequest
            {
                Port = input.Port,
                QueueName = input.QueueName
            };

            var messages = _queueMessageRetrieval.GetAllMessagesInQueue(request).Select(msg => new QueueMessage
            {
                InternalMessage = msg,
                OriginalQueueName = input.QueueName,
                PortNumber = input.Port
            });
            var outgoing = input.QueueName == "outgoing" || input.QueueName == "outgoing_history";

            return new QueueMessagesVisualization
            {
                QueueName = input.QueueName,
                Messages = outgoing
                    ? new SendingMessagesTableTag(messages, _urls)
                    : new MessagesTableTag(messages, _urls)
            };
        }