7 references to AddRequirements
CustomAuthorizationFailureResponse (3)
Startup.cs (3)
39
policy.
AddRequirements
(new SampleRequirement()));
42
policy.
AddRequirements
(new SampleFailReasonRequirement()));
45
policy.
AddRequirements
(new SampleWithCustomMessageRequirement()));
CustomPolicyProvider (1)
Authorization\MinimumAgePolicyProvider.cs (1)
45
policy.
AddRequirements
(new MinimumAgeRequirement(age));
Microsoft.AspNetCore.Authorization.Policy (1)
AuthorizationMiddleware.cs (1)
130
reqPolicy.
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))))