Skip to content

Commit 8135545

Browse files
authored
fix code tags in docs (#54987)
1 parent bccb0db commit 8135545

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/Security/Authorization/Core/src/AuthorizationServiceExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static class AuthorizationServiceExtensions
2222
/// <param name="requirement">The requirement to evaluate the policy against.</param>
2323
/// <returns>
2424
/// A flag indicating whether requirement evaluation has succeeded or failed.
25-
/// This value is <value>true</value> when the user fulfills the policy, otherwise <value>false</value>.
25+
/// This value is <c>true</c> when the user fulfills the policy, otherwise <c>false</c>.
2626
/// </returns>
2727
public static Task<AuthorizationResult> AuthorizeAsync(this IAuthorizationService service, ClaimsPrincipal user, object? resource, IAuthorizationRequirement requirement)
2828
{
@@ -41,7 +41,7 @@ public static Task<AuthorizationResult> AuthorizeAsync(this IAuthorizationServic
4141
/// <param name="policy">The policy to evaluate.</param>
4242
/// <returns>
4343
/// A flag indicating whether policy evaluation has succeeded or failed.
44-
/// This value is <value>true</value> when the user fulfills the policy, otherwise <value>false</value>.
44+
/// This value is <c>true</c> when the user fulfills the policy, otherwise <c>false</c>.
4545
/// </returns>
4646
public static Task<AuthorizationResult> AuthorizeAsync(this IAuthorizationService service, ClaimsPrincipal user, object? resource, AuthorizationPolicy policy)
4747
{
@@ -59,7 +59,7 @@ public static Task<AuthorizationResult> AuthorizeAsync(this IAuthorizationServic
5959
/// <param name="policy">The policy to evaluate.</param>
6060
/// <returns>
6161
/// A flag indicating whether policy evaluation has succeeded or failed.
62-
/// This value is <value>true</value> when the user fulfills the policy, otherwise <value>false</value>.
62+
/// This value is <c>true</c> when the user fulfills the policy, otherwise <c>false</c>.
6363
/// </returns>
6464
public static Task<AuthorizationResult> AuthorizeAsync(this IAuthorizationService service, ClaimsPrincipal user, AuthorizationPolicy policy)
6565
{
@@ -77,7 +77,7 @@ public static Task<AuthorizationResult> AuthorizeAsync(this IAuthorizationServic
7777
/// <param name="policyName">The name of the policy to evaluate.</param>
7878
/// <returns>
7979
/// A flag indicating whether policy evaluation has succeeded or failed.
80-
/// This value is <value>true</value> when the user fulfills the policy, otherwise <value>false</value>.
80+
/// This value is <c>true</c> when the user fulfills the policy, otherwise <c>false</c>.
8181
/// </returns>
8282
public static Task<AuthorizationResult> AuthorizeAsync(this IAuthorizationService service, ClaimsPrincipal user, string policyName)
8383
{

src/Security/Authorization/Core/src/DefaultAuthorizationService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public DefaultAuthorizationService(IAuthorizationPolicyProvider policyProvider,
5757
/// <param name="requirements">The requirements to evaluate.</param>
5858
/// <returns>
5959
/// A flag indicating whether authorization has succeeded.
60-
/// This value is <value>true</value> when the user fulfills the policy otherwise <value>false</value>.
60+
/// This value is <c>true</c> when the user fulfills the policy, otherwise <c>false</c>.
6161
/// </returns>
6262
public virtual async Task<AuthorizationResult> AuthorizeAsync(ClaimsPrincipal user, object? resource, IEnumerable<IAuthorizationRequirement> requirements)
6363
{
@@ -94,7 +94,7 @@ public virtual async Task<AuthorizationResult> AuthorizeAsync(ClaimsPrincipal us
9494
/// <param name="policyName">The name of the policy to check against a specific context.</param>
9595
/// <returns>
9696
/// A flag indicating whether authorization has succeeded.
97-
/// This value is <value>true</value> when the user fulfills the policy otherwise <value>false</value>.
97+
/// This value is <c>true</c> when the user fulfills the policy otherwise <c>false</c>.
9898
/// </returns>
9999
public virtual async Task<AuthorizationResult> AuthorizeAsync(ClaimsPrincipal user, object? resource, string policyName)
100100
{

src/Security/Authorization/Core/src/IAuthorizationService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public interface IAuthorizationService
2323
/// <param name="requirements">The requirements to evaluate.</param>
2424
/// <returns>
2525
/// A flag indicating whether authorization has succeeded.
26-
/// This value is <value>true</value> when the user fulfills the policy; otherwise <value>false</value>.
26+
/// This value is <c>true</c> when the user fulfills the policy; otherwise <c>false</c>.
2727
/// </returns>
2828
/// <remarks>
2929
/// Resource is an optional parameter and may be null. Please ensure that you check it is not
@@ -43,7 +43,7 @@ public interface IAuthorizationService
4343
/// <returns>
4444
/// A flag indicating whether authorization has succeeded.
4545
/// Returns a flag indicating whether the user, and optional resource has fulfilled the policy.
46-
/// <value>true</value> when the policy has been fulfilled; otherwise <value>false</value>.
46+
/// <c>true</c> when the policy has been fulfilled; otherwise <c>false</c>.
4747
/// </returns>
4848
/// <remarks>
4949
/// Resource is an optional parameter and may be null. Please ensure that you check it is not

0 commit comments

Comments
 (0)