public void BeforeSendReply(ref System.ServiceModel.Channels.Message reply, object correlationState) { if (isDebugEnabled) { System.ServiceModel.Channels.MessageBuffer buffer = reply.CreateBufferedCopy(Int32.MaxValue); reply = buffer.CreateMessage(); log.Debug(buffer.CreateMessage().GetBody <string>()); } }
public override bool Match(System.ServiceModel.Channels.MessageBuffer buffer) { return(Match(buffer.CreateMessage())); }