i was actually going to do something else, but this is a simpler approach.
thanks.
-d

On Sat, Apr 23, 2011 at 2:28 PM, Jason Meckley <[email protected]>wrote:

> var handlers = kernel.GetHandlers(typeof(IConsumer));
>
> you can also have the kernel return all components. i think the new
> collection resolver will throw if a component is not resolvable.
> kernel.Resolver.AddSubdependencyResolver(new CollectionResolver(true));
> ...
> var components = kernel.ResolveAll<IConsumer>();
>
> --
> 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.
>

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