Something like this will register all assemblies in a directory:
string[] dlls = System.IO.Directory.GetFiles
(AppDomain.CurrentDomain.BaseDirectory + "/plugins", "*.dll");
foreach(string asmpath in dlls)
{
container.Register(AllTypes.Of<IPlugin>()
.FromAssembly(Assembly.LoadFile
(asmpath)).WithService.FromInterface());
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---