In my eternal quest to suck less, I am currently testing mvc Turbine for IoC dirty work.
I use the mvc Turbine nerd dinner example as a leadership, and everything looks pretty logical so far. Although I am referring to the turbine design here, I assume that the philosophy behind it is something common for the Safe to Read model and a rare podcast, I am new to the IoC concept, and I have a few questions.
So far, I have an IServiceRegistration entry for each IRepository that I want to register. For example:
public class UserRepositoryRegistration : IServiceRegistration
{
public void Register(IServiceLocator locator)
{
locator.Register<IUserRepository, UserRepository>();
}
}
The specific implementation of IUserRepository requires some configuration. Something like a connection string, or in this case, the path to the db4o file to use.
Where and to whom should I provide this information?
source
share