public void Logout()
        {
            RolodexIdentity  identity  = RolodexIdentity.UnauthenticatedIdentity();
            RolodexPrincipal principal = new RolodexPrincipal(identity);

            Csla.ApplicationContext.User = principal;
        }
Exemple #2
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);
     });
 }