1 namespace ${basename}
\r
5 using Castle.Windsor;
\r
8 public class MyHttpApplication : HttpApplication, IContainerAccessor
\r
10 private static WindsorContainer container;
\r
12 public void Application_OnStart()
\r
14 // You can replace by your container subclass
\r
15 container = new MyContainer();
\r
18 public void Application_OnEnd()
\r
20 container.Dispose();
\r
23 #region IContainerAccessor implementation
\r
25 public IWindsorContainer Container
\r
27 get { return container; }
\r