Function entry and exit

Topics: Logging Application Block, Policy Injection Application Block
Sep 20, 2012 at 2:29 PM


Is there any example for automatically writing to a log file all functions' entry and exit, using policy injection application block? (something like creating a lof file of callstack...)


Sep 21, 2012 at 12:35 AM
Edited Sep 21, 2012 at 12:50 AM

There is a LogCallHandler that is designed for just this type of scenario.  Also look at Using Interception and Policy InjectionPolicy Injection in Unity and Registering Policy Injection Components.

The Hands-On Labs for Microsoft Enterprise Library 5.0 also has a section on interception.

Randy Levy
Enterprise Library support engineer