GetMessage() public method

public GetMessage ( string messageId ) : string>.IDictionary
messageId string
return string>.IDictionary
        public void Accept(ProcessedMessage message)
        {
            if (message?.Headers == null)
            {
                return;
            }

            string intent;

            if (!message.Headers.TryGetValue("NServiceBus.MessageIntent", out intent))
            {
                return;
            }
            if (intent == "Subscribe" || intent == "Unsubscribe")
            {
                return;
            }

            var senderId = _nodeStrategy.GetNodeId(message.MessageMetadata.SendingEndpoint);

            if (senderId != null)
            {
                var senderNode = _model.GetEndpoint(senderId);
                senderNode["Label"] = message.MessageMetadata.SendingEndpoint.Name;
            }

            var receiverId = _nodeStrategy.GetNodeId(message.MessageMetadata.ReceivingEndpoint);

            if (receiverId != null)
            {
                var receiverNode = _model.GetEndpoint(receiverId);
                receiverNode["Label"] = message.MessageMetadata.ReceivingEndpoint.Name;
            }

            var messageId = _nodeStrategy.GetNodeId(message);

            if (messageId != null)
            {
                var messageNode = _model.GetMessage(messageId);
                messageNode["Intent"] = intent;
                if (!string.IsNullOrWhiteSpace(message.MessageMetadata.MessageType))
                {
                    messageNode["Label"] = message.MessageMetadata.MessageType.Split('.').Last();
                }
            }

            if (senderId != null && messageId != null)
            {
                var senderLink = _model.GetLink(senderId, messageId);
                senderLink["Intent"] = intent;
            }

            if (messageId != null && receiverId != null)
            {
                var receiverLink = _model.GetLink(messageId, receiverId);
                receiverLink["Intent"] = intent;
            }
        }