public ExceptionDetails(StoredMessage message)
 {
     ExceptionType = message.GetHeaderByKey(MessageHeaderKeys.ExceptionType);
     Message = message.GetHeaderByKey(MessageHeaderKeys.ExceptionMessage);
     Source = message.GetHeaderByKey(MessageHeaderKeys.ExceptionSource);
     StackTrace = message.GetHeaderByKey(MessageHeaderKeys.ExceptionStackTrace);
 }
Esempio n. 2
0
 private string ProcessSagaType(StoredMessage message)
 {
     if (message.Sagas == null) return string.Empty;
     
     var originatingSaga = message.Sagas.FirstOrDefault();
     if (originatingSaga == null) return string.Empty;
     
     return ProcessType(originatingSaga.SagaType);
 }
Esempio n. 3
0
 public MessageNode(IMessageFlowViewModel owner, StoredMessage message)
 {
     Owner = owner;
     Bounds = new Rect(100, 100, 203, 40);
     ZOrder = 1;
     Data = message;
     IsResizable = false;
     ExceptionMessage = message.GetHeaderByKey(MessageHeaderKeys.ExceptionType);
 }
        public void Search_message_would_set_the_search_criteria_only()
        {
            var sut = CreateSUT();
            var messageId = "SomeMessageId";
            var msg = new StoredMessage { MessageId = messageId };

            sut.SearchByMessageId(msg);

            _searchBar.Received(1).Search(Arg.Is(messageId), Arg.Is(false));
        }
Esempio n. 5
0
        public MessageNode(IMessageFlowViewModel owner, StoredMessage message) 
        {
            IsResizable = false;
            Owner = owner;
            Data = message;
            ExceptionMessage = message.GetHeaderByKey(MessageHeaderKeys.ExceptionType);
            SagaType = ProcessSagaType(message);

            heightNoEndpoints += HasSaga ? 10 : 0;
            Bounds = new Rect(0, 0, 203, heightNoEndpoints);
        }
 public DiagramNode(StoredMessage msg)
 {
     ConversationId = msg.ConversationId;
     CorrelationId = msg.CorrelationId;
     Destination = msg.Destination;
     FailureDetails = msg.FailureDetails;
     Id = msg.Id;
     MessageId = msg.MessageId;
     IsDeferredMessage = msg.IsDeferredMessage;
     MessageType = msg.MessageType;
     OriginatingEndpoint = msg.OriginatingEndpoint;
     ReceivingEndpoint = msg.ReceivingEndpoint;
     RelatedToMessageId = msg.RelatedToMessageId;
     Status = msg.Status;
     TimeSent = msg.TimeSent;
     Statistics = msg.Statistics;
 }
        public void Search_message_would_set_the_endpoint_name()
        {
            var sut = CreateSUT();
            var messageId = "SomeMessageId";
            var receiving = new Endpoint();
            var sending = new Endpoint();
            var msg = new StoredMessage
            {
                MessageId = messageId,
                ReceivingEndpoint = receiving,
                SendingEndpoint = sending,
            };

            sut.SearchByMessageId(msg);

            _eventAggregator.Received(1).Publish(Arg.Is<RequestSelectingEndpoint>(m => m.Endpoint == receiving));
        }
 public SelectedMessageChanged(StoredMessage message)
 {
     Message = message;
 }
        public bool DisplayPropertiesChanged(StoredMessage focusedMessage)
        {
            if (focusedMessage == null) return true;

            return (Status != focusedMessage.Status) ||
                   (TimeSent != focusedMessage.TimeSent) ||
                   (ProcessingTime != focusedMessage.ProcessingTime) ||
                   (ReceivingEndpoint.ToString() != focusedMessage.ReceivingEndpoint.ToString()) ||
                   (SendingEndpoint.ToString() != focusedMessage.SendingEndpoint.ToString());
        }