Example #1
0
 private static void SetPrincipal(Csla.Security.CslaIdentity identity)
 {
     BusinessPrincipal principal = new BusinessPrincipal(identity);
       Csla.ApplicationContext.User = principal;
 }
Example #2
0
 public static void Logout()
 {
     Csla.Security.CslaIdentity identity = BusinessIdentity.UnauthenticatedIdentity();
       BusinessPrincipal principal = new BusinessPrincipal(identity);
       Csla.ApplicationContext.User = principal;
 }