Update policies.md (#18842)

pull/18854/head
Rick Anderson 2020-06-17 14:38:35 -10:00 committed by GitHub
parent 6e204c6e7b
commit 9cade78646
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -256,6 +256,8 @@ The primary service that determines if authorization is successful is <xref:Micr
[!code-csharp[](policies/samples/stubs/copy_of_IAuthorizationService.cs?highlight=24-25,48-49&name=snippet)]
[!INCLUDE[request localized comments](~/includes/code-comments-loc.md)]
The preceding code highlights the two methods of the [IAuthorizationService](https://github.com/dotnet/AspNetCore/blob/v2.2.4/src/Security/Authorization/Core/src/IAuthorizationService.cs).
<xref:Microsoft.AspNetCore.Authorization.IAuthorizationRequirement> is a marker service with no methods, and the mechanism for tracking whether authorization is successful.