コード例 #1
0
        protected virtual async Task <PermissionScopeType> CheckPolicyScopeAsync()
        {
            if (string.IsNullOrEmpty(PolicyName))
            {
                return(PermissionScopeType.Granted);
            }

            var result = await PermissionChecker.GetResultAsync(PolicyName);

            return(result.ScopeType);
        }