public static UserPermission GetPermission(this BzurePrincipal Principal) { return(Actor.Me.GetCached("_bzure.security.userpermission", () => { BzureUserModel um = Principal.Identity as BzureUserModel; return new UserPermission(um.Entity.UserID.ToString(), um.Entity.UserName); }, TimeSpan.FromHours(2))); }
public BzurePrincipal(BzureUserModel user) { _user = user; this.TicketData = ""; }