1
如何获取在IWindsorContainer中注册的程序集列表(不是类,可能有一个程序集中有多个类)?如何获得IWindsorContainer(C#)中注册程序集的列表
如何获取在IWindsorContainer中注册的程序集列表(不是类,可能有一个程序集中有多个类)?如何获得IWindsorContainer(C#)中注册程序集的列表
var assemblies = container.Kernel.GetAssignableHandlers(typeof (object))
.Select(handler => handler.ComponentModel.Implementation.Assembly)
.Distinct();
这将获得所有注册的处理程序,然后选择包含它们的程序集。