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()); }
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()); }