1 instantiation of SampleRequirement
CustomAuthorizationFailureResponse (1)
Startup.cs (1)
39
policy.AddRequirements(new
SampleRequirement
()));
3 references to SampleRequirement
CustomAuthorizationFailureResponse (3)
Authorization\Handlers\SampleRequirementHandler.cs (2)
10
public class SampleRequirementHandler : AuthorizationHandler<
SampleRequirement
>
12
protected override Task HandleRequirementAsync(AuthorizationHandlerContext context,
SampleRequirement
requirement)
Authorization\SampleAuthorizationMiddlewareResultHandler.cs (1)
43
if (policyAuthorizationResult.AuthorizationFailure.FailedRequirements.Any(requirement => requirement is
SampleRequirement
))