This post originated from an RSS feed registered with .NET Buzz
by Igor Milovanovic.
Original Post: Interception with Context Bound Objects in .NET
Feed Title: Igor Milovanovic
Feed URL: /error.aspx?aspxerrorpath=/imilovanovic/category/991.aspx/rss
Feed Description: .NET, cats and more...
I have spotted several articles recently about the use of interception with context bound objects. Roy Osherove introduced his caching framework for example, and Einar Ingebrigtsen wrote an article about the possible use of interceptor pattern for implementing the persistence aspect on TheServerSide.NET. The interessting thing about context bound objects is that you can use the ProxyAttribute on them to intercept the new statement and to do all kinds of "magic" there (persistence, security checks, caching etc...).