Example #1
0
 public User(string Name, int Id)
 {
     Identity = new UserIdentity(Name, Id);
 }
Example #2
0
 public User(UserIdentity UserIdentity)
 {
     Identity = UserIdentity;
 }
Example #3
0
 public User(string Name, int Id, string DisplayName)
 {
     Identity = new UserIdentity(Name, Id, DisplayName);
 }
Example #4
0
 public User(string Name, bool IsAuthenticated)
 {
     Identity = new UserIdentity(Name, IsAuthenticated);
 }
        protected User GetUser(SimpleAuthenticationTicket Ticket, SessionData Data)
        {
            UserIdentity identity = new UserIdentity(Ticket.UserName, Data.UserId, Data.UserDisplayName, Data.Roles);

            return new User(identity);
        }