I took that exact same route in Bamboo.Prevalence and it worked like a charm. You might want to check the source code for a RealProxy implementation that provides transparent persistence to your objects at: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/bbooprevalence/Bamboo.Prevale nce/src/Bamboo.Prevalence/Implementation/PrevalentSystemProxy.cs?rev=1.2&con tent-type=text/vnd.viewcvs-markup
The nice thing is that extending RealProxy is way simpler than playing with ContextBoundObject/ContextAttribute/IMessageSink/etc. And just as effective. Rodrigo B. de Oliveira http://bbooprevalence.sourceforge.net ----- Original Message ----- From: "Mike Woodring" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 17, 2002 1:32 PM Subject: [ADVANCED-DOTNET] Fw: Re: [OT] IDynamicMessageSink / IDynamicProperty - AOP in .Net > Accidentally replied privately - posting here for the archives... > > -Mike > http://staff.develop.com/woodring > http://www.develop.com/devresources > > ----- Original Message ----- > From: "Mike Woodring" <[EMAIL PROTECTED]> > To: "Ethan J. Brown" <[EMAIL PROTECTED]> > Sent: Tuesday, September 17, 2002 8:12 AM > Subject: Re: Re: [OT] IDynamicMessageSink / IDynamicProperty - AOP in .Net > > > > I looked for that same feature way back when I was first venturing into > this > > space and couldn't find it. > > > > The only way I know of to guarantee interception w/o regard to context > > boundaries is to write a custom RealProxy and ProxyAttribute. Jim Sievert > > posted a sample to gotdotnet called the "interposer" that is a good > > demonstration of this approach (sorry, don't have the link handy). You > > might check that out before pursuing the context-based approach much > > farther... > > > > -Mike > > http://staff.develop.com/woodring > > http://www.develop.com/devresources > > > > > > From: "Ethan J. Brown" <[EMAIL PROTECTED]> > > > but is there a way to always force > > > going through a proxy to get to the real object (regardless of context), > > so > > > that even objects living in the same context talk to each other through > > > proxies? > > > > You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. > You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.
