Support MiniProfiler WCF Async

Does MiniProfiler.WCF support asynchronous WCF calls?

It looks like when calling our WCF service using our asynchronous interface, AfterReceiveRequest on IDispatchMessageInspector never starts.

I believe that this is due to the fact that Async is not implemented in the entire WCF pipeline only at the working level.

This made me write an IParameterInspector and start profiling in BeforeCall and AfterCall using OperationContext.Current.IncomingMessageHeaders and OperationContext.Current.OutgoingMessageHeaders to read and write headers. This works fine on the host, but there will be no OperationContext.Current on the client, so we cannot get the headers.

AfterReceiveReply in the client inspector, async WCF never starts, so we also cannot get the headers.

Has anyone made any progress in this area or does anyone have any tips on how we can get back time on the client?

+4
source share

Source: https://habr.com/ru/post/1493217/


All Articles