Added ability to order the execution of dictionary adapter behaviors.
[castle.git] / Experiments / Attic / MVC / Castle.MVC.Test.Web / Global.asax.cs
blob8bf3c57811d29e2431065ecc2293f362a7faa781
1 using System;
2 using System.ComponentModel;
3 using System.Reflection;
4 using System.Web;
5 using Castle.MicroKernel.SubSystems.Configuration;
6 using Castle.Core.Resource;
7 using Castle.MVC.Navigation;
8 using Castle.MVC.StatePersister;
9 using Castle.MVC.States;
10 using Castle.MVC.Test.Presentation;
11 using Castle.MVC.Views;
12 using Castle.Windsor;
13 using Castle.Windsor.Configuration.Interpreters;
15 namespace Castle.MVC.Test.Web
17 /// <summary>
18 /// Description résumée de Global.
19 /// </summary>
20 public class Global : HttpApplication, IContainerAccessor
22 /// <summary>
23 /// Variable nécessaire au concepteur.
24 /// </summary>
25 private IContainer components = null;
27 private static WindsorContainer _container;
29 #region IContainerAccessor implementation
31 public IWindsorContainer Container
33 get { return _container; }
36 #endregion
38 public Global()
40 InitializeComponent();
43 protected void Application_Start(Object sender, EventArgs e)
45 DefaultConfigurationStore store = new DefaultConfigurationStore();
46 XmlInterpreter interpreter = new XmlInterpreter(new ConfigResource());
47 interpreter.ProcessResource(interpreter.Source, store);
49 _container = new MyContainer(interpreter);
52 protected void Session_Start(Object sender, EventArgs e)
57 protected void Application_BeginRequest(Object sender, EventArgs e)
62 protected void Application_EndRequest(Object sender, EventArgs e)
67 protected void Application_AuthenticateRequest(Object sender, EventArgs e)
72 protected void Application_Error(Object sender, EventArgs e)
77 protected void Session_End(Object sender, EventArgs e)
82 protected void Application_End(Object sender, EventArgs e)
84 _container.Dispose();
87 #region Code généré par le Concepteur Web Form
88 /// <summary>
89 /// Méthode requise pour la prise en charge du concepteur - ne modifiez pas
90 /// le contenu de cette méthode avec l'éditeur de code.
91 /// </summary>
92 private void InitializeComponent()
94 this.components = new Container();
96 #endregion