The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Introducing the Osherove.Interception framework

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Roy Osherove

Posts: 1807
Nickname: royo
Registered: Sep, 2003

Roy Osherove is a .Net consultant based in Israel
Introducing the Osherove.Interception framework Posted: Oct 11, 2004 8:48 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Roy Osherove.
Original Post: Introducing the Osherove.Interception framework
Feed Title: ISerializable
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/rosherove/Rss.aspx
Feed Description: Roy Osherove's persistent thoughts
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Roy Osherove
Latest Posts From ISerializable

Advertisement
Following the Nunit Extensibility framework, I did some thinking and made a More generic framework for interception ability. That means that you can create your own interception attributes not only for unit testing but for real world applications as well.
the new solution consists of more real world examples (well, one, but a cool one).
The coolest example so far is an idea triggered by Peli - it's a Caching attribute.
In this case I created an object that has properties and methods that have an [AutoCache] attribute on them.
this makes them automatically return values from a simple cache object.
Actually - the attribute takes care of everything so the properties and methods actually return NULL.
Yep - it magically just works.
Give it a shot. I like this idea and I think it might have a future.
what do you think?
 

Read: Introducing the Osherove.Interception framework

Topic: How many fingers am I holding up? Previous Topic   Next Topic Topic: Letter from America - Part I

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use