public PermissionService( PermissionManager permissionManager, IPermissionDefinitionManager permissionDefinitionManager, IOptions <PermissionManagementOptions> options) { _permissionManager = permissionManager; _permissionDefinitionManager = permissionDefinitionManager; Options = options.Value; }
public MenuGrantAppService( IMenuRepository menuRepository, IMenuManager menuManager, IPermissionAppService permissionAppService, IOptions <PermissionManagementOptions> options, IAuthorizationService authorizationService, IAbpAuthorizationPolicyProvider abpAuthorizationPolicyProvider, IUserMenuGrantChecker userMenuGrantChecker, ICurrentPrincipalAccessor principalAccessor ) { _menuRepository = menuRepository; _menuManager = menuManager; _permissionAppService = permissionAppService; _authorizationService = authorizationService; _abpAuthorizationPolicyProvider = abpAuthorizationPolicyProvider; _userMenuGrantChecker = userMenuGrantChecker; _principalAccessor = principalAccessor; _options = options.Value; }