Implemented interface member:
method
GetPolicyAsync
Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider.GetPolicyAsync(System.String)
1 override of GetPolicyAsync
Microsoft.AspNetCore.Authorization.Test (1)
AuthorizationMiddlewareTests.cs (1)
341public override Task<AuthorizationPolicy> GetPolicyAsync(string policyName)
3 references to GetPolicyAsync
CustomPolicyProvider (1)
Authorization\MinimumAgePolicyProvider.cs (1)
52return FallbackPolicyProvider.GetPolicyAsync(policyName);
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
AuthorizeFilterIntegrationTest.cs (2)
61policyProvider.Setup(p => p.GetPolicyAsync(It.IsAny<string>())).Callback(() => getPolicyCalled++).ReturnsAsync(policy); 92policyProvider.Setup(p => p.GetPolicyAsync(It.IsAny<string>())).Callback(() => getPolicyCalled++).ReturnsAsync(policy);