WCF IDispatchMessageInspector
A message appears as a string that passes all tests. When you try to create a message from it and return it via BeforeSendReply, the signature will fly out and the message will not be valid. What could be the reason?
How do I create a message from a string?
+3
Akio
source
to share
1 answer
You can get the message like this:
public void BeforeSendReply(ref Message reply, object correlationState)
{
MessageBuffer buffer = reply.CreateBufferedCopy(Int32.MaxValue);
reply = buffer.CreateMessage();
string message = buffer.CreateMessage();
...
0
Peter
source
to share