title: Measure WCF request time on server
body: <p>I would like to compute time that spans between two particular moments:</p>
  
  <pre><code>- start moment would be call to method IDispatchMessageInspector
  .AfterReceiveRequest
  - end moment would be call to method IDispatchMessageInspector.BeforeSendReply
  </code></pre>
  
  <p>In fact, I would like to compute time that is needed to execute service call user code. I thought that those two methods of IDispatchMessageInspector are good place to hook. But unfortunately I don't know how to associate AfterReceiveRequest for message with corresponding BeforeSendReply call.</p>
  
  <p>Thanks Pawel.</p>