Exemplo n.º 1
0
        public void Logout()
        {
            RolodexIdentity  identity  = RolodexIdentity.UnauthenticatedIdentity();
            RolodexPrincipal principal = new RolodexPrincipal(identity);

            Csla.ApplicationContext.User = principal;
        }
Exemplo n.º 2
0
        new public static RolodexIdentity UnauthenticatedIdentity()
        {
#pragma warning disable 0618
            var returnValue = new RolodexIdentity();
#pragma warning restore 0618
            returnValue.IsAuthenticated=false;
            return returnValue;
        }
Exemplo n.º 3
0
        new public static RolodexIdentity UnauthenticatedIdentity()
        {
#pragma warning disable 0618
            var returnValue = new RolodexIdentity();
#pragma warning restore 0618
            returnValue.IsAuthenticated = false;
            return(returnValue);
        }
Exemplo n.º 4
0
 public static void Login(string username, string password, EventHandler <DataPortalResult <RolodexIdentity> > completed)
 {
     RolodexIdentity.GetIdentity(username, password, (o, e) =>
     {
         if (e.Object == null)
         {
             SetPrincipal(RolodexIdentity.UnauthenticatedIdentity());
         }
         else
         {
             SetPrincipal(e.Object);
         }
         completed(e.Object, e);
     });
 }
Exemplo n.º 5
0
        public static void Login(string username, string password)
        {
            RolodexIdentity identity = RolodexIdentity.GetIdentity(username, password);

            SetPrincipal(identity);
        }