Wednesday, January 26, 2011

The beauty of Inversion of Control

public CoeController() : this(IoC.Resolve<IRepository<Coe>>(), IoC.Resolve<IAuthenticationService>()) 
{ }

A controller that can look up what its dependencies are.


Seems neat.  Still thinking about it.

No comments: