示例#1
0
        public override void InterceptResponse(dk.gov.oiosi.extension.wcf.Interceptor.Channels.InterceptorMessage interceptorMessage)
        {
            string             action = interceptorMessage.GetHeaders().Action;
            List <XmlDocument> receivedMessagesWithSameAction;

            MessagesReceived.TryGetValue(action, out receivedMessagesWithSameAction);

            if (receivedMessagesWithSameAction == null)
            {
                receivedMessagesWithSameAction = new List <XmlDocument>();
                MessagesReceived.Add(action, receivedMessagesWithSameAction);
            }

            receivedMessagesWithSameAction.Add(interceptorMessage.GetBody());
        }
示例#2
0
        public override void InterceptRequest(dk.gov.oiosi.extension.wcf.Interceptor.Channels.InterceptorMessage interceptorMessage)
        {
            string             action = interceptorMessage.GetHeaders().Action;
            List <XmlDocument> sentMessagesWithSameAction;

            MessagesSent.TryGetValue(action, out sentMessagesWithSameAction);

            if (sentMessagesWithSameAction == null)
            {
                sentMessagesWithSameAction = new List <XmlDocument>();
                MessagesSent.Add(action, sentMessagesWithSameAction);
            }

            sentMessagesWithSameAction.Add(interceptorMessage.GetBody());
        }