7 references to AddRequirements
CustomAuthorizationFailureResponse (3)
Startup.cs (3)
39policy.AddRequirements(new SampleRequirement())); 42policy.AddRequirements(new SampleFailReasonRequirement())); 45policy.AddRequirements(new SampleWithCustomMessageRequirement()));
CustomPolicyProvider (1)
Authorization\MinimumAgePolicyProvider.cs (1)
45policy.AddRequirements(new MinimumAgeRequirement(age));
Microsoft.AspNetCore.Authorization.Policy (1)
AuthorizationMiddleware.cs (1)
130reqPolicy.AddRequirements(r);
Microsoft.AspNetCore.Authorization.Test (1)
PolicyEvaluatorTests.cs (1)
144.AddRequirements(new DummyRequirement())
Microsoft.AspNetCore.SignalR.Tests (1)
MapSignalRTests.cs (1)
113.RequireAuthorization(policy => policy.AddRequirements(req))))