I currently have a bunch of repositories like so
IMyRepository
IAnotherRepository
They all inherit from IRepository (if this helps)
How can I get structuremap to use an IRegistryConvention scanner to register my concrete types which are named
SqlMyRepository
SqlAnotherRepository
I had read that article but it didn't give me quite what I needed. The AddAllTypesOf registered all the concrete types against the IRepositoryInterface but instead I require that each concrete type is registered against the interface with equivilent naming. ie.
Also I need to create some named instances for test repositories.
Here's what I came up with which appears to work as I need it.
And implemented as follows
Check out http://codebetter.com/blogs/jeremy.miller/archive/2009/01/20/create-your-own-auto-registration-convention-with-structuremap.aspx
In particular, this part
So for you, I think something like this should work