Created
September 9, 2009 04:17
-
-
Save cprieto/183465 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected virtual IWindsorContainer InitializeServiceLocator() | |
{ | |
var container = new WindsorContainer(); | |
ControllerBuilder.Current.SetControllerFactory(new WindsorControllerFactory(container)); | |
// NOTE: Here I need to register each controller | |
ComponentRegistrar.AddComponentsTo(container); | |
ServiceLocator.SetLocatorProvider(() => new WindsorServiceLocator(container)); | |
return container; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment