BlogSharp.Web.MvcApplication.Application_Start C# (CSharp) Method

Application_Start() protected method

protected Application_Start ( ) : void
return void
        protected void Application_Start()
        {
            RegisterRoutes(RouteTable.Routes);
            try
            {
                var engine = new SparkViewFactory();
                container = new WindsorContainer("Configuration/castle.xml");
                ViewEngines.Engines.Add(engine);
            }
            catch (Exception)
            {
            }
            container.Kernel.Resolver.AddSubResolver(new ListResolver(container.Kernel));
            container.Install(new DefaultComponentInstallers());
            ControllerBuilder.Current.SetControllerFactory(container.Resolve<IExtendedControllerFactory>());
            BlogContextProvider.Current = container.Resolve<BlogContextProvider>();
        }