none
How to get the byte size (Content-Length) in IDispatchMessageInspector.BeforeSendReply ? RRS feed

  • Question

  • Hi,

    In BeforeSendReply I need to log the byte size of what I'm about to send - how to get that? 

    -- 
    Werner

    Thursday, January 30, 2014 11:48 AM

All replies

  • Or perhaps there is some way to access the WCF pipeline later? I mean at some stage http headers (e.g. Content-Length) is written to the stream. 

    -- 
    Werner

    Friday, January 31, 2014 7:16 AM
  • Found the solution here.
    Thursday, February 6, 2014 7:35 AM
  • Found the solution here.

    Mike, how do you see that? Where in that thread are they accessing information about the size of the body/envelope/message?

    -- 
    Werner

    Thursday, February 6, 2014 10:25 AM