annotate Agendas/trunk/src/Agendas.Web/HttpContextIdentityProvider.cs @ 234:cc71f96ac134

Combinar
author juanjose.montesdeocaarbos
date Tue, 04 Oct 2011 20:36:27 -0300
parents 3ebe89c88caa
children
rev   line source
50
3ebe89c88caa Agregando propiedad al Evento sobre el Usuario que lo crea o que realizó la
nelopauselli
parents: 34
diff changeset
1 using System.Web;
19
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
2 using AltNetHispano.Agendas.Domain;
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
3
34
475be11edf56 Ajuste en los nombre de los assemblies y namespaces
nelo@MTEySS.neluz.int
parents: 33
diff changeset
4 namespace AltNetHispano.Agendas.Web
19
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
5 {
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
6 public class HttpContextIdentityProvider : ISeguridad
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
7 {
50
3ebe89c88caa Agregando propiedad al Evento sobre el Usuario que lo crea o que realizó la
nelopauselli
parents: 34
diff changeset
8 public string GetUserName()
19
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
9 {
50
3ebe89c88caa Agregando propiedad al Evento sobre el Usuario que lo crea o que realizó la
nelopauselli
parents: 34
diff changeset
10 return HttpContext.Current.User.Identity.Name;
19
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
11 }
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
12 }
74eb4577d447 HttpContext identity provider
nelo@MTEySS.neluz.int
parents:
diff changeset
13 }