What happens when you register on IController?

On Thu, Apr 2, 2009 at 8:57 AM, Wayne Douglas <[email protected]> wrote:

>
> Hi
>
> Can anyone spot anything wrong with this:
>
> <code>
>            IWindsorContainer container = new WindsorContainer();
>            container.Register(
>                    Component.For<LoggingInterceptor>(),
>                    AllTypes.Of<Controller>()
>                        .FromAssembly(Assembly.GetExecutingAssembly())
>                            .Configure(c => c.Interceptors(new
> InterceptorReference(typeof(LoggingInterceptor)))),
>                    AllTypes.Of<SmartDispatcherController>()
>                        .FromAssembly(Assembly.GetExecutingAssembly())
>                            .Configure(c => c.Interceptors(new
> InterceptorReference(typeof(LoggingInterceptor))))
>                    );
> </code>
>
> All the controllers are loaded ok - but the interceptors never happen...
>
> w://
>
> --
> Cheers,
>
> w://
>
> >
>


-- 
Ryan Svihla
Systems Developer
Farm Bureau Bank

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to