Skip to content

Instantly share code, notes, and snippets.

@davetheninja
Created September 25, 2009 14:09
Show Gist options
  • Save davetheninja/193558 to your computer and use it in GitHub Desktop.
Save davetheninja/193558 to your computer and use it in GitHub Desktop.
using Castle.Windsor;
using Castle.Windsor.Configuration;
using Castle.Windsor.Configuration.Interpreters;
using Core.Castle.Installers;
namespace Core.Castle
{
public class IoCContainer : WindsorContainer
{
public IoCContainer() : this(new XmlInterpreter("windsor.config.xml")) { }
IoCContainer(IConfigurationInterpreter interpreter) : base(interpreter)
{
Install(new EnumerableResolverInstaller());
Install(new BootStrapperInstaller());
Install(new RepositoriesInstaller());
Install(new ControllersInstaller());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment