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