Mercurial > altnet-hispano
annotate Agendas/trunk/src/Agendas.Web/Global.asax.cs @ 116:53bcd338542b
acciones de confirmar y publicar desde la UI
author | Nelo@Kenia.neluz.int |
---|---|
date | Sun, 19 Jun 2011 13:00:02 -0300 |
parents | db4b1e2cae49 |
children | 1e47bf408073 1deccd6c3cb2 |
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; |
83
7e9ffde4022d
Implementando DataAnnotation desde recursos y por convención
nelopauselli
parents:
67
diff
changeset
|
5 using AltNetHispano.Agendas.Resources.Properties; |
84 | 6 using AltNetHispano.Agendas.Web.CustomModelMetadataProvider; |
10 | 7 |
34
475be11edf56
Ajuste en los nombre de los assemblies y namespaces
nelo@MTEySS.neluz.int
parents:
19
diff
changeset
|
8 namespace AltNetHispano.Agendas.Web |
10 | 9 { |
10 // Note: For instructions on enabling IIS6 or IIS7 classic mode, | |
11 // visit http://go.microsoft.com/?LinkId=9394801 | |
12 | |
13 public class MvcApplication : System.Web.HttpApplication | |
14 { | |
84 | 15 private static void RegisterGlobalFilters(GlobalFilterCollection filters) |
10 | 16 { |
17 filters.Add(new HandleErrorAttribute()); | |
67
c8099df941bd
Implementando persistencia con NHibernate en el proyecto web
nelopauselli
parents:
50
diff
changeset
|
18 filters.Add(AttributeFactory.GetNHibernateSessionPerAction()); |
10 | 19 } |
20 | |
84 | 21 private static void RegisterRoutes(RouteCollection routes) |
10 | 22 { |
23 routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); | |
24 | |
25 routes.MapRoute( | |
26 "Default", // Route name | |
27 "{controller}/{action}/{id}", // URL with parameters | |
28 new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults | |
29 ); | |
30 | |
31 } | |
32 | |
33 protected void Application_Start() | |
34 { | |
84 | 35 ModelMetadataProviders.Current = |
85 | 36 new DataAnnotationAndConventionModelMetadataProvider( |
84 | 37 new ResolverThroughResource<DataAnnotationResources>()); |
83
7e9ffde4022d
Implementando DataAnnotation desde recursos y por convención
nelopauselli
parents:
67
diff
changeset
|
38 |
10 | 39 AreaRegistration.RegisterAllAreas(); |
40 | |
41 RegisterGlobalFilters(GlobalFilters.Filters); | |
42 RegisterRoutes(RouteTable.Routes); | |
19 | 43 |
94
db4b1e2cae49
Cambio del nombre de la clase Ponente a Persona
Nelo@Kenia.neluz.int
parents:
85
diff
changeset
|
44 IdentityContext.Init(new HttpContextIdentityProvider(), AgendaFactory.GetPersonaRepository()); |
10 | 45 } |
46 } | |
47 } |