PostSharp Principles: Day 4 - OnMethodBoundaryAspect

added by kingbee71
6/30/2011 9:51:33 AM

322 Views

Dustin Davis revisits the OnMethodBoundaryAspect class by building a profiler aspect to identify slow executing methods. As noted in Day 2, OnMethodBoundaryAspect has 4 methods for us to access specific points in a methods execution OnEntry - Before the execution of the method body OnExit - Always called when a method is done executing even if there was an error OnSuccess - Called only when a method is done executing and there were no exceptions OnException - Called only when a method has stopped executing due to an unhandled exception


0 comments