2 using System
.ComponentModel
;
3 using System
.Reflection
;
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
;
13 using Castle
.Windsor
.Configuration
.Interpreters
;
15 namespace Castle
.MVC
.Test
.Web
18 /// Description résumée de Global.
20 public class Global
: HttpApplication
, IContainerAccessor
23 /// Variable nécessaire au concepteur.
25 private IContainer components
= null;
27 private static WindsorContainer _container
;
29 #region IContainerAccessor implementation
31 public IWindsorContainer Container
33 get { return _container; }
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
)
87 #region Code généré par le Concepteur Web Form
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.
92 private void InitializeComponent()
94 this.components
= new Container();