From: hammett <ha...@uo...> - 2004-10-30 04:51:35
|
Simple usage: GeneratorContext context = new GeneratorContext(); SimpleMixin mixin1 = new SimpleMixin(); OtherMixin mixin2 = new OtherMixin(); context.AddMixinInstance( mixin1 ); context.AddMixinInstance( mixin2 ); AssertInvocationInterceptor interceptor = new AssertInvocationInterceptor(); object proxy = m_generator.CreateCustomClassProxy( typeof(SimpleClass), interceptor, context ); ISimpleMixin mixin = proxy as ISimpleMixin; IOtherMixin other = proxy as IOtherMixin; Now the painfull refactor in Aspect# will be painless :-) -- Cheers, hammett http://www.digitalcraftsmen.com.br/~hammett |