Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save daniiiol/f8c994c7ebb2c255f8e2b185c5499eaf to your computer and use it in GitHub Desktop.
Save daniiiol/f8c994c7ebb2c255f8e2b185c5499eaf to your computer and use it in GitHub Desktop.
public static void RegisterTypes(IWindsorContainer container)
{
var rootPath = HostingEnvironment.MapPath("~/");
var basePath = PathInfo.Combine(PathInfo.Create(rootPath), PathInfo.Create(ConfigurationManager.AppSettings["NitroNet.BasePath"])).ToString();
new DefaultCastleWindsorModule(basePath).Configure(container);
new SitecoreCastleWindsorModule().Configure(container);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment