0
StructureMap中是否有设施可以让我像Unity一样按需从其他模块(组件)加载服务?StructureMap可以根据需要加载模块/程序集吗?
StructureMap中是否有设施可以让我像Unity一样按需从其他模块(组件)加载服务?StructureMap可以根据需要加载模块/程序集吗?
?喜欢?
Assembly ass = Assembly.GetCallingAssembly();
Container.Configure(x => x.Scan(scan =>
{
scan.Assembly(ass);
scan.LookForRegistries();
}));