예제 #1
0
 public AddPermissionsToUserClaims(
     UserManager <IdentityUser> userManager,
     RoleManager <IdentityRole> roleManager,
     IOptions <IdentityOptions> optionsAccessor,
     ExtraAuthorizeDbContext extraAuthDbContext)
     : base(userManager, roleManager, optionsAccessor)
 {
     _extraAuthDbContext = extraAuthDbContext;
 }
예제 #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (_extraAuthDbContextOptions != null && _context != null)
            {
                if (disposing)
                {
                    _context.Dispose();
                }

                // TODO: free unmanaged resources (unmanaged objects) and override a finalizer below.
                // TODO: set large fields to null.
                _context = null;
            }
        }
예제 #3
0
 public CalcAllowedPermissions(ExtraAuthorizeDbContext context)
 {
     _context = context;
 }