Skip to content

Fix code tags in docs #54987

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static class AuthorizationServiceExtensions
/// <param name="requirement">The requirement to evaluate the policy against.</param>
/// <returns>
/// A flag indicating whether requirement evaluation has succeeded or failed.
/// This value is <value>true</value> when the user fulfills the policy, otherwise <value>false</value>.
/// This value is <c>true</c> when the user fulfills the policy, otherwise <c>false</c>.
/// </returns>
public static Task<AuthorizationResult> AuthorizeAsync(this IAuthorizationService service, ClaimsPrincipal user, object? resource, IAuthorizationRequirement requirement)
{
Expand All @@ -41,7 +41,7 @@ public static Task<AuthorizationResult> AuthorizeAsync(this IAuthorizationServic
/// <param name="policy">The policy to evaluate.</param>
/// <returns>
/// A flag indicating whether policy evaluation has succeeded or failed.
/// This value is <value>true</value> when the user fulfills the policy, otherwise <value>false</value>.
/// This value is <c>true</c> when the user fulfills the policy, otherwise <c>false</c>.
/// </returns>
public static Task<AuthorizationResult> AuthorizeAsync(this IAuthorizationService service, ClaimsPrincipal user, object? resource, AuthorizationPolicy policy)
{
Expand All @@ -59,7 +59,7 @@ public static Task<AuthorizationResult> AuthorizeAsync(this IAuthorizationServic
/// <param name="policy">The policy to evaluate.</param>
/// <returns>
/// A flag indicating whether policy evaluation has succeeded or failed.
/// This value is <value>true</value> when the user fulfills the policy, otherwise <value>false</value>.
/// This value is <c>true</c> when the user fulfills the policy, otherwise <c>false</c>.
/// </returns>
public static Task<AuthorizationResult> AuthorizeAsync(this IAuthorizationService service, ClaimsPrincipal user, AuthorizationPolicy policy)
{
Expand All @@ -77,7 +77,7 @@ public static Task<AuthorizationResult> AuthorizeAsync(this IAuthorizationServic
/// <param name="policyName">The name of the policy to evaluate.</param>
/// <returns>
/// A flag indicating whether policy evaluation has succeeded or failed.
/// This value is <value>true</value> when the user fulfills the policy, otherwise <value>false</value>.
/// This value is <c>true</c> when the user fulfills the policy, otherwise <c>false</c>.
/// </returns>
public static Task<AuthorizationResult> AuthorizeAsync(this IAuthorizationService service, ClaimsPrincipal user, string policyName)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public DefaultAuthorizationService(IAuthorizationPolicyProvider policyProvider,
/// <param name="requirements">The requirements to evaluate.</param>
/// <returns>
/// A flag indicating whether authorization has succeeded.
/// This value is <value>true</value> when the user fulfills the policy otherwise <value>false</value>.
/// This value is <c>true</c> when the user fulfills the policy, otherwise <c>false</c>.
/// </returns>
public virtual async Task<AuthorizationResult> AuthorizeAsync(ClaimsPrincipal user, object? resource, IEnumerable<IAuthorizationRequirement> requirements)
{
Expand Down Expand Up @@ -94,7 +94,7 @@ public virtual async Task<AuthorizationResult> AuthorizeAsync(ClaimsPrincipal us
/// <param name="policyName">The name of the policy to check against a specific context.</param>
/// <returns>
/// A flag indicating whether authorization has succeeded.
/// This value is <value>true</value> when the user fulfills the policy otherwise <value>false</value>.
/// This value is <c>true</c> when the user fulfills the policy otherwise <c>false</c>.
/// </returns>
public virtual async Task<AuthorizationResult> AuthorizeAsync(ClaimsPrincipal user, object? resource, string policyName)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public interface IAuthorizationService
/// <param name="requirements">The requirements to evaluate.</param>
/// <returns>
/// A flag indicating whether authorization has succeeded.
/// This value is <value>true</value> when the user fulfills the policy; otherwise <value>false</value>.
/// This value is <c>true</c> when the user fulfills the policy; otherwise <c>false</c>.
/// </returns>
/// <remarks>
/// Resource is an optional parameter and may be null. Please ensure that you check it is not
Expand All @@ -43,7 +43,7 @@ public interface IAuthorizationService
/// <returns>
/// A flag indicating whether authorization has succeeded.
/// Returns a flag indicating whether the user, and optional resource has fulfilled the policy.
/// <value>true</value> when the policy has been fulfilled; otherwise <value>false</value>.
/// <c>true</c> when the policy has been fulfilled; otherwise <c>false</c>.
/// </returns>
/// <remarks>
/// Resource is an optional parameter and may be null. Please ensure that you check it is not
Expand Down