Mercurial > altnet-hispano
annotate Agendas/trunk/src/Agendas.Web/Global.asax.cs @ 34:475be11edf56
Ajuste en los nombre de los assemblies y namespaces
author | nelo@MTEySS.neluz.int |
---|---|
date | Thu, 17 Mar 2011 16:59:29 -0300 |
parents | 74eb4577d447 |
children | 3ebe89c88caa |
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; |
34
475be11edf56
Ajuste en los nombre de los assemblies y namespaces
nelo@MTEySS.neluz.int
parents:
19
diff
changeset
|
3 using AltNetHispano.Agendas.Factories; |
10 | 4 |
34
475be11edf56
Ajuste en los nombre de los assemblies y namespaces
nelo@MTEySS.neluz.int
parents:
19
diff
changeset
|
5 namespace AltNetHispano.Agendas.Web |
10 | 6 { |
7 // Note: For instructions on enabling IIS6 or IIS7 classic mode, | |
8 // visit http://go.microsoft.com/?LinkId=9394801 | |
9 | |
10 public class MvcApplication : System.Web.HttpApplication | |
11 { | |
12 public static void RegisterGlobalFilters(GlobalFilterCollection filters) | |
13 { | |
14 filters.Add(new HandleErrorAttribute()); | |
15 } | |
16 | |
17 public static void RegisterRoutes(RouteCollection routes) | |
18 { | |
19 routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); | |
20 | |
21 routes.MapRoute( | |
22 "Default", // Route name | |
23 "{controller}/{action}/{id}", // URL with parameters | |
24 new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults | |
25 ); | |
26 | |
27 } | |
28 | |
29 protected void Application_Start() | |
30 { | |
31 AreaRegistration.RegisterAllAreas(); | |
32 | |
33 RegisterGlobalFilters(GlobalFilters.Filters); | |
34 RegisterRoutes(RouteTable.Routes); | |
19 | 35 |
36 AgendaFactory.SetIdentityProvider(new HttpContextIdentityProvider()); | |
10 | 37 } |
38 } | |
39 } |