コード例 #1
0
 public static ApplicationRoleManager ResetManager()
 {
     _roleStore   = new RoleStore <ApplicationRole, long, ApplicationUserRole>(new ApplicationDbContext());
     _roleManager = new ApplicationRoleManager(_roleStore);
     UserCache.ClearSession();
     GC.Collect();
     return(_roleManager);
 }