确定StructureMap是否配置了特定类型?

Jon*_*ill 4 structuremap

有没有办法确定StructureMap中是否配置了特定类型?

如果没有在StructureMap中专门配置,我想返回泛型类型.

And*_*ock 13

在v2.6中你想要:

IContainer.Model.HasImplementationsFor(serviceType)
Run Code Online (Sandbox Code Playgroud)