Not exactly what you're looking for but here is some guide

http://www.tunatoksoz.com/post/Castle-ServiceIdResolver.aspx

You'll need to check if type is IDictionary<T1,T2> and thena ct accordingly.

Tuna Toksöz
Eternal sunshine of the open source mind.

http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
http://twitter.com/tehlike




On Mon, May 4, 2009 at 3:23 PM, Yannis <[email protected]> wrote:

>
> I have a service called PluginService that has a dictionary<String,
> ISomePlugin>. all the implementations of ISomePlugin are registered as
> follows:
>
> kernel.Register(AllTypes.FromAssembly(assembly).BasedOn<ISomePlugin>
> ());
>
> When I was using an XML config I was defining the dictionary for
> PluginService in the config file. The string is the component name and
> the ISomePlugin is its implementation. But is there any way to do this
> programmatically?
>
> The PluginService has a constructor of:
>
> public PluginService(Dictionary<String, ISomePlugin> pluginCollection)
>        {
>            _PluginCollection = pluginCollection;
>        }
>
> thx
> >
>

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