Ejemplo n.º 1
0
 public void Handle(SelectedMessageChangedEvent @event)
 {
     if (@event.SelectedMessage == null)
     {
         SelectedMessage = null;
     }
 }
Ejemplo n.º 2
0
        public MessageBody MapBody(Message source)
        {
            var m = new MessageBody(source.Id, source.Label, source.SentTime)
            {
                BodyRaw = source.BodyStream.GetAsBytes(),
                Headers = source.Extension,
                CorrelationId = source.CorrelationId,
                TransactionId = source.TransactionId,
                Destination = source.DestinationQueue == null ? null : MapQueue(source.DestinationQueue),
                Response = source.ResponseQueue == null ? null : MapQueue(source.ResponseQueue),
            };

            return m;
        }
Ejemplo n.º 3
0
 public void Handle(MessageBodyLoadedEvent @event)
 {
     SelectedMessage = @event.Message;
 }
Ejemplo n.º 4
0
 public MessageBodyLoadedEvent(MessageBody message)
 {
     Message = message;
 }