Can Structuremap DefaultConventionScanner find non-public classes

I just started using StructureMap, previously working with Spring.Net. I like the DefaultConventionScanner and the ability to scan assemblies and use the configuration convention to find classes. But there seems to be a limitation that classes that implement interfaces must be publicly available, while we like to ignore public interfaces and our implementations built into the assembly.

Is there a way to ask DefaultConventionScanner to find inner classes?

+5
source share
1 answer

, , , StructureMap, . StructureMap, InternalsVisibleTo, . ITypeScanner (, DefaultConventionScanner), , AssemblyScanner .

+9

All Articles