Hi
I have some HandlerSelector/s which do not work after I upgraded to 3.0
First I add the selector:
kernel.AddHandlerSelector(new DefaultRegistrationPolicyHandlerSelector());
and then I hit the class in debug mode. The IHandler[] handlers parameter
is empty :( Any idea why?
class
DefaultRegistrationPolicyHandlerSelector: IHandlerSelector
{
// Other code...
public IHandler SelectHandler(string key, Type service, IHandler[]
handlers)
{
return handlers.Where(x => x.ComponentModel.Implementation ==
typeof(NoRegistrationPolicy)).First();
}
}
--
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/-/yDYNg_GOfKkJ.
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.