Mercurial > altnet-hispano
annotate Agendas/trunk/src/Agendas.Web/Global.asax.cs @ 55:39f5258ebdcf
Agregando referencias con NuGet
author | nelopauselli |
---|---|
date | Mon, 16 May 2011 20:10:45 -0300 |
parents | 3ebe89c88caa |
children | c8099df941bd |
rev | line source |
---|---|
34
475be11edf56
Ajuste en los nombre de los assemblies y namespaces
nelo@MTEySS.neluz.int
parents:
19
diff
changeset
|
1 using System.Web.Mvc; |
10 | 2 using System.Web.Routing; |
50
3ebe89c88caa
Agregando propiedad al Evento sobre el Usuario que lo crea o que realizó la
nelopauselli
parents:
34
diff
changeset
|
3 using AltNetHispano.Agendas.Domain; |
34
475be11edf56
Ajuste en los nombre de los assemblies y namespaces
nelo@MTEySS.neluz.int
parents:
19
diff
changeset
|
4 using AltNetHispano.Agendas.Factories; |
10 | 5 |
34
475be11edf56
Ajuste en los nombre de los assemblies y namespaces
nelo@MTEySS.neluz.int
parents:
19
diff
changeset
|
6 namespace AltNetHispano.Agendas.Web |
10 | 7 { |
8 // Note: For instructions on enabling IIS6 or IIS7 classic mode, | |
9 // visit http://go.microsoft.com/?LinkId=9394801 | |
10 | |
11 public class MvcApplication : System.Web.HttpApplication | |
12 { | |
13 public static void RegisterGlobalFilters(GlobalFilterCollection filters) | |
14 { | |
15 filters.Add(new HandleErrorAttribute()); | |
16 } | |
17 | |
18 public static void RegisterRoutes(RouteCollection routes) | |
19 { | |
20 routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); | |
21 | |
22 routes.MapRoute( | |
23 "Default", // Route name | |
24 "{controller}/{action}/{id}", // URL with parameters | |
25 new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults | |
26 ); | |
27 | |
28 } | |
29 | |
30 protected void Application_Start() | |
31 { | |
32 AreaRegistration.RegisterAllAreas(); | |
33 | |
34 RegisterGlobalFilters(GlobalFilters.Filters); | |
35 RegisterRoutes(RouteTable.Routes); | |
19 | 36 |
50
3ebe89c88caa
Agregando propiedad al Evento sobre el Usuario que lo crea o que realizó la
nelopauselli
parents:
34
diff
changeset
|
37 IdentityContext.Current = new HttpContextIdentityProvider(); |
10 | 38 } |
39 } | |
40 } |