예제 #1
0
 public static bool Login( long facebookId )
 {
     AIIdentity identity = AIIdentity.GetIdentity( facebookId );
     if ( identity.IsAuthenticated )
     {
         AIPrincipal principal = new AIPrincipal( identity );
         Csla.ApplicationContext.User = principal;
     }
     return identity.IsAuthenticated;
 }
예제 #2
0
 public static void Logout()
 {
     AIIdentity identity = AIIdentity.UnauthenticatedIdentity();
     AIPrincipal principal = new AIPrincipal( identity );
     Csla.ApplicationContext.User = principal;
 }