Yes, IKernel has several overloads of ResolveAll()
On Jul 17, 12:42 am, scott_m <[email protected]> wrote:
> Great tip.
>
> Is there a way to have an IKernel instance to return all the container
> registered implementations for a given interface? Would be nice to
> have a factory call that returns an array of all my available plugins
> instances.
>
> thanks
>
> On Jul 16, 10:18 pm, Mauricio Scheffer <[email protected]>
> wrote:
>
>
>
> > Are these constructor dependencies managed by the container? If they
> > are, you could just inject IKernel and let it resolve them.
>
> > If I got it all wrong, please post some code.
>
> > On Jul 16, 11:47 pm, scott_m <[email protected]> wrote:
>
> > > How do you design a plugin factory that plays nice with construction
> > > based DI? I have a plugin factory that news up the correct plugin
> > > based upon an arg passed into the GetPlugin call. Unfortunately,
> > > these Plugins have constructor dependencies that must be satisfied.
> > > Am I forced to put these as dependencies in the factory constructor so
> > > I can later satisfy the plugin dependcies at construction time?
>
> > > thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---