Can you do conventions-based binding with StructureMap 2.5.3?
- by Peter Goras
I find one of the best features of Ninject is conventions-based binding. eg.
Bind<IConfigurationSource>().To<RemoteConfigurationSource>()
.Only(When.Context.Target.Name.BeginsWith("remote"));
Bind<IConfigurationSource>().To<LocalConfigurationSource>()
.Only(When.Context.Target.Name.BeginsWith("local"));
http://ninject.codeplex.com/Wiki/View.aspx?title=Conventions-Based%20Binding&referringTitle=Home
Is this possible in StructureMap 2.5.3?
Thanks