更新时间:2023-11-05 21:24:58
请深入了解在StructureMap 2.5。它提供了一些功能,可以显着降低来引导IOC容器的工作。它提供了一个约定优于配置技术(见下面的博客条目)
Take a deeper look at StructureMap 2.5. It offers several features to dramatically reduce the work to bootstrap the IOC container. It offers a convention over configuration technique (see the blog entries below)
请参阅从杰里米·米勒(StructureMap的作者)
See the following recent blog posts from Jeremy Miller (author of StructureMap)
与StructureMap
创建自己的自动登记公约>Create your own Auto Registration Convention with StructureMap
// Example from the blog post above
var container = new Container(registry =>
{
registry.Scan(x =>
{
x.TheCallingAssembly();
x.With<DefaultConventionScanner>();
});
});
StructureMap 2.5.2发布