Mercurial > altnet-hispano
annotate Agendas/trunk/src/Agendas.Web/Global.asax.cs @ 79:8df9db937434
Url de invitación en la UI: validación y persistencia
author | nelopauselli |
---|---|
date | Tue, 24 May 2011 18:08:59 -0300 |
parents | c8099df941bd |
children | 7e9ffde4022d |
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()); | |
67
c8099df941bd
Implementando persistencia con NHibernate en el proyecto web
nelopauselli
parents:
50
diff
changeset
|
16 filters.Add(AttributeFactory.GetNHibernateSessionPerAction()); |
10 | 17 } |
18 | |
19 public static void RegisterRoutes(RouteCollection routes) | |
20 { | |
21 routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); | |
22 | |
23 routes.MapRoute( | |
24 "Default", // Route name | |
25 "{controller}/{action}/{id}", // URL with parameters | |
26 new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults | |
27 ); | |
28 | |
29 } | |
30 | |
31 protected void Application_Start() | |
32 { | |
33 AreaRegistration.RegisterAllAreas(); | |
34 | |
35 RegisterGlobalFilters(GlobalFilters.Filters); | |
36 RegisterRoutes(RouteTable.Routes); | |
19 | 37 |
50
3ebe89c88caa
Agregando propiedad al Evento sobre el Usuario que lo crea o que realizó la
nelopauselli
parents:
34
diff
changeset
|
38 IdentityContext.Current = new HttpContextIdentityProvider(); |
10 | 39 } |
40 } | |
41 } |