root/UnityWeb/UnityWeb/UnityWeb/Global.asax.cs
| 82 | 83 | ||
|---|---|---|---|
2 | 2 | ||
3 | using System; | 3 | using System; |
4 | using System.Web; | 4 | using System.Web; |
5 | using Modules.EmployeeManagement.View; | 5 | using Modules; |
6 | using Modules.Unity; | ||
7 | using StructureMap; | 6 | using StructureMap; |
8 | 7 | ||
9 | #endregion | 8 | #endregion |
... | ... | ||
14 | { | 13 | { |
15 | protected void Application_Start(object sender, EventArgs e) | 14 | protected void Application_Start(object sender, EventArgs e) |
16 | { | 15 | { |
17 | ObjectFactory.Initialize(factory => | 16 | ObjectFactory.Initialize(factory => factory.AddRegistry<StructureMapRegistery>()); |
18 | { | ||
19 | factory.AddRegistry<StructureMapRegistery>(); | ||
20 | //factory.SetAllProperties( | ||
21 | // policy => policy.OfType<EmployeePresenter>()); | ||
22 | } | ||
23 | ); | ||
24 | } | 17 | } |
25 | 18 | ||
26 | protected void Session_Start(object sender, EventArgs e) | 19 | protected void Session_Start(object sender, EventArgs e) |
Download diff