kernel.AddHandlerSelector(new DefaultRegistrationPolicyHandlerSelector());
classDefaultRegistrationPolicyHandlerSelector: IHandlerSelector{
// Other code...
public IHandler SelectHandler(string key, Type service, IHandler[] handlers) { return handlers.Where(x => x.ComponentModel.Implementation == typeof(NoRegistrationPolicy)).First(); } }
Component.For<IRegistrationPolicy>().ImplementedBy<NoRegistrationPolicy>().LifeStyle.Is(lifeStyle), Component.For<IRegistrationPolicy>().ImplementedBy<DefaultRegistrationPolicy>().LifeStyle.Is(lifeStyle),
kernel.AddHandlerSelector(new DefaultRegistrationPolicyHandlerSelector());
--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/castle-project-users/-/nKERlSVM4_IJ.
To post to this group, send email to castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/castle-project-users/-/4bjZSNelf7oJ.
> --
> You received this message because you are subscribed to the Google
> Groups "Castle Project Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/castle-project-users/-/CxGpdDjLeqcJ.