Dear ladies and sirs.
I wish to debug why my application sends so much data using WCF underneath. I tried to examine WCF trace logs and examine the traffic with Fiddler, but I need a stack trace leading to the offending client code.
So, I installed a custom IClientMessageInspector
, but how can I know the size of the actual data given a Message
instance? The ToString()
of the given Message
instance returns an XML, but I am not sure if its size is it.
Is there a way to hook into the WCF stack even deeper and closer to the actual sending of the message?
UPDATE
Found this SO question 1 year old, funny, but no one answered it - http://stackoverflow.com/questions/457683/message-size-after-serialize