Exemplo n.º 1
0
        public void StuffMessageToQueue(string serializedMessageToStuff, string queueName)
        {
            if (string.IsNullOrEmpty(queueName))
            {
                _view.SetStatus("Can not stuff to unknown queue!");
                return;
            }

            if (_messageType == null)
            {
                _view.SetStatus("No messagetype selected.");
                return;
            }

            var messages = _visualSerializer.GetDeserializedType(serializedMessageToStuff);

            _messageStuffer.StuffMessagesToQueue(queueName, messages);

            _view.SetStatus(string.Format("Message of type {0} has been stuffed into {1} at {2}", _messageType.Name, queueName, DateTime.Now));
        }
Exemplo n.º 2
0
 public void Initialize(IQueueStufferView view)
 {
     _view = view;
     _view.SetStatus("No assembly with messagetypes has been loaded yet.");
 }
 public void Initialize(IQueueStufferView view)
 {
     _view = view;
     _view.SetStatus("No assembly with messagetypes has been loaded yet.");
 }