comparison Agendas/trunk/src/Agendas.Web/Global.asax.cs @ 19:74eb4577d447

HttpContext identity provider Requerimiento de autenticación para registrar un nuevo evento o modificar uno existente
author nelo@MTEySS.neluz.int
date Mon, 14 Mar 2011 00:35:43 -0300
parents c62b77fc33f4
children 475be11edf56
comparison
equal deleted inserted replaced
18:8ed4a806ebe0 19:74eb4577d447
1 using System; 1 using System;
2 using System.Collections.Generic; 2 using System.Collections.Generic;
3 using System.Linq; 3 using System.Linq;
4 using System.Web;
5 using System.Web.Mvc; 4 using System.Web.Mvc;
6 using System.Web.Routing; 5 using System.Web.Routing;
6 using Agendas.Factories;
7 7
8 namespace Agendas.Web 8 namespace Agendas.Web
9 { 9 {
10 // Note: For instructions on enabling IIS6 or IIS7 classic mode, 10 // Note: For instructions on enabling IIS6 or IIS7 classic mode,
11 // visit http://go.microsoft.com/?LinkId=9394801 11 // visit http://go.microsoft.com/?LinkId=9394801
33 { 33 {
34 AreaRegistration.RegisterAllAreas(); 34 AreaRegistration.RegisterAllAreas();
35 35
36 RegisterGlobalFilters(GlobalFilters.Filters); 36 RegisterGlobalFilters(GlobalFilters.Filters);
37 RegisterRoutes(RouteTable.Routes); 37 RegisterRoutes(RouteTable.Routes);
38
39 AgendaFactory.SetIdentityProvider(new HttpContextIdentityProvider());
38 } 40 }
39 } 41 }
40 } 42 }