PostSharp Principles: Day 4 - OnMethodBoundaryAspect(www.sharpcrafters.com)
submitted by
kingbee71(511) 10 months, 25 days ago
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
|category: C#
|Views: 23
tags:
C# another
Everyones tags:
Your Tags: