//1. Create a new instance of the Container
var _myIoC = new Container4Fun();
//2. Register the Dependencies 
_myIoC.Register<IDefaultPresentador, DefaultPresentador>();    
_myIoC.Register<IClienteRepositorio, ClienteRepositorio>();         
//3. Let the Container Resolve Dependencies         
_presentador = _myIoC.Resolve<IDefaultPresentador>();

Last edited Jan 4, 2011 at 6:03 AM by jmho, version 2

Comments

No comments yet.