protected virtual async Task <PermissionScopeType> CheckPolicyScopeAsync() { if (string.IsNullOrEmpty(PolicyName)) { return(PermissionScopeType.Granted); } var result = await PermissionChecker.GetResultAsync(PolicyName); return(result.ScopeType); }