protected override ApplicationSession CreateApplicationSession(string name)
{
bool isAdmin;
ApplicationSession applicationSession = new ApplicationSession(true, name)
{
RoleIds = GetRolesIdByUserId(name, out isAdmin).ToArray(),
IsAdmin=isAdmin,
};
return applicationSession;
}