PostSharp Principles: Day 4 - OnMethodBoundaryAspect(www.sharpcrafters.com)

submitted by kingbee71kingbee71(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

add a comment |category: |Views: 23

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story