/// <summary> /// 初始化类<see cref="PermissionTagHelper"/>。 /// </summary> /// <param name="authorizationService">权限验证服务。</param> public PermissionTagHelper(IPermissionAuthorizationService authorizationService) { _authorizationService = authorizationService; }
/// <summary> /// 初始化类<see cref="MenuTagHelper"/>。 /// </summary> /// <param name="factory">菜单提供者工厂接口。</param> /// <param name="urlHelperFactory">URL辅助类工厂接口。</param> /// <param name="authorizationService">权限验证服务。</param> public MenuTagHelper(IMenuProviderFactory factory, IUrlHelperFactory urlHelperFactory, IPermissionAuthorizationService authorizationService) { _factory = factory; _urlHelperFactory = urlHelperFactory; _authorizationService = authorizationService; }
/// <summary> /// 初始化类<see cref="PermissionAuthorizationHandler"/>。 /// </summary> /// <param name="permissionManager">权限验证接口实例对象。</param> public PermissionAuthorizationHandler(IPermissionAuthorizationService authorizationService) { _authorizationService = authorizationService; }