Inheritance: IBusinessIdentity
コード例 #1
0
        private static bool SetPrincipal(BusinessIdentity identity)
        {
            if (identity.IsAuthenticated)
            {
                var principal = new BusinessPrincipal(identity);

                Csla.ApplicationContext.User = principal;
            }

            return(identity.IsAuthenticated);
        }
コード例 #2
0
        private static bool SetPrincipal(BusinessIdentity identity)
        {
            if (identity.IsAuthenticated)
            {
                var principal = new BusinessPrincipal(identity);

                Csla.ApplicationContext.User = principal;
            }

            return identity.IsAuthenticated;
        }
コード例 #3
0
 public static void LoadPrincipal(string username)
 {
     BusinessPrincipal.SetPrincipal(BusinessIdentity.GetIdentity(username));
 }
コード例 #4
0
 public static bool Login(string username, string password)
 {
     return(BusinessPrincipal.SetPrincipal(BusinessIdentity.GetIdentity(username, password)));
 }