|
Nevermind, I create the instances of MyInterceptor and register those
instances directly with the desired name. To give you a glance of what I'm using it for: I'm implementing a basic(!) AOP system on top of Windsor. As of now I can e.g. do this: // extension method that sets up the container as required var weaver = container.EnableAop(); // register concern with inline advice weaver.AddConcern(Concern .WithPointcut(CallTo.MethodWithAttribute<LoggedAttribute>()) .IsAdvisedBy(call => { Console.Out.WriteLine("Before"); call.Proceed(); Console.Out.WriteLine("After"); }) ); // or with advice type (will be resolved from kernel) weaver.AddConcern(Concern .WithPointcut(CallTo.MethodWithAttribute<LoggedAttribute>()) .IsAdvisedBy<LogAdvice>() ); Works fine so far. It's just a basic prototype, but it might come in handy. If it turns out to be useful I'll publish the code, feedback is therefore appreciated. Regards, Andre Any chance to pass non-string arguments through the component registration? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~--- |
- Passing arguments to interceptors Andre Loker
- Re: Passing arguments to interceptors Eric Hauser
- Re: Passing arguments to interceptors Andre Loker
- Re: Passing arguments to interceptors Ayende Rahien
- Re: Passing arguments to interceptors Andre Loker
- Re: Passing arguments to interceptors Andre Loker
- Re: Passing arguments to intercept... Andre Loker
- Re: Passing arguments to interceptors Andre Loker
- Re: Passing arguments to interceptors Andre Loker
