locked
IDispatchMessageInspector Methods called twice RRS feed

  • Question

  • Hi 

    I'm trying to implement IDispatchMessageInspector interface. I notice both AfterReceiveRequest() and BeforeSendReply() methods are called twice in a single request. Any ideas?



    Thursday, June 21, 2012 7:49 AM

Answers

  • Hi Carlos, thanks for the reply.

    I think I have figured it out. I've configured both endpointbehaviour and servicebehaviour in this case.

    • Edited by Chenjun Ying Friday, June 22, 2012 12:38 AM
    • Marked as answer by Yi-Lun Luo Friday, June 22, 2012 12:54 AM
    Thursday, June 21, 2012 11:59 PM

All replies

  • Can you provide more details (contract, binding, how the client calls the service) about your scenario?

    Carlos Figueira

    Thursday, June 21, 2012 1:47 PM
  • Hi Carlos, thanks for the reply.

    I think I have figured it out. I've configured both endpointbehaviour and servicebehaviour in this case.

    • Edited by Chenjun Ying Friday, June 22, 2012 12:38 AM
    • Marked as answer by Yi-Lun Luo Friday, June 22, 2012 12:54 AM
    Thursday, June 21, 2012 11:59 PM