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