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