Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>1) You can use WCF extensibility to intercept WCF methods invocation.</p> <p>See: <a href="http://blogs.msdn.com/b/carlosfigueira/archive/2011/04/26/wcf-extensibility-iparameterinspector.aspx" rel="nofollow">IParameterInspector (Simple profiler)</a></p> <p>and</p> <p>Message Inspectors <a href="http://blogs.msdn.com/b/carlosfigueira/archive/2011/04/19/wcf-extensibility-message-inspectors.aspx" rel="nofollow">here</a> and <a href="http://msdn.microsoft.com/en-us/library/aa717047.aspx" rel="nofollow">here</a>.</p> <p>2) More universal approach is to use 'regular' interсeptors. If you build dynamic interceptor-proxy (I recommend to use <a href="http://kozmic.net/dynamic-proxy-tutorial/" rel="nofollow">castle dynamic proxy</a> or very powerful <a href="https://github.com/ekonbenefits/impromptu-interface/wiki/_pages" rel="nofollow">impromptu interface</a> for this) for your Wcf service implementation (or any class you need to measure performance) - you will be able to manually measure method calls with stopwatches and log results as you want with some extra info. </p> <p>Good practice is to register (switch) concrete interface implementations with dependency injection frameworks. Some of them supports WCF integration facilities (links: <a href="https://code.google.com/p/autofac/wiki/WcfIntegration" rel="nofollow">Autofac</a>, <a href="http://docs.castleproject.org/Windsor.WCF-Integration-Facility.ashx" rel="nofollow">Windsor</a>, <a href="http://blog.tonysneed.com/2011/10/24/using-ninject-with-wcf-services/" rel="nofollow">Ninject</a>) and dynamic proxy (links: <a href="https://code.google.com/p/autofac/wiki/DynamicProxy2" rel="nofollow">Autofac</a>, <a href="http://app-code.net/wordpress/?p=689" rel="nofollow">Windsor</a>, <a href="http://luisfsgoncalves.wordpress.com/2012/02/21/mixin-up-ninject-castle-dynamic-proxy-and-wcf-part-i/" rel="nofollow">Ninject</a>).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload