How can I add some scoping when I scan my assemblies ? Google doesn’t seem quite happy with “structuremap scan cacheby” :/
ObjectFactory.Configure(registry =>
{
registry.Scan(x =>
{
x.AssemblyContainingType(typeof(IRepository<>));
x.With<DefaultConventionScanner>();
});
}
The way I got around this was to build a custom convention scanner: