PDA

View Full Version : Add interface implementation


.ben
03-16-2007, 01:13 PM
Is it possible to add an interface implementation to a proxy?

Something like:


ProxyFactory factory = new ProxyFactory(new MySuperDomainObject());
factory.AddInterface(typeof(IPersistent));
IMySuperDomainObject obj = (IMySuperDomainObject)factory.GetProxy();


I get an object supporting the interface, but I'll need a way to hook it up with some sort of implementation of the interface IPersistent.

.ben
03-16-2007, 01:18 PM
Introduction advice I guess.

Bruno Baia
03-16-2007, 03:26 PM
:D
There is an exemple in the AopQuickStart sample.


Bruno

.ben
03-20-2007, 09:40 AM
By the time I give up searching and post it here, I find it 10 seconds later :p.