1 implementation of EvaluatePolicy
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsService.cs (1)
58
public CorsResult
EvaluatePolicy
(HttpContext context, CorsPolicy policy)
9 references to EvaluatePolicy
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsMiddleware.cs (1)
176
var corsResult = CorsService.
EvaluatePolicy
(context, corsPolicy);
Microsoft.AspNetCore.Cors.Test (5)
CorsMiddlewareTests.cs (5)
799
Mock.Get(corsService).Verify(v => v.
EvaluatePolicy
(It.IsAny<HttpContext>(), It.IsAny<CorsPolicy>()), Times.Never());
845
mockCorsService.Setup(o => o.
EvaluatePolicy
(It.IsAny<HttpContext>(), It.IsAny<CorsPolicy>()))
867
o => o.
EvaluatePolicy
(It.IsAny<HttpContext>(), metadataPolicy),
882
mockCorsService.Setup(o => o.
EvaluatePolicy
(It.IsAny<HttpContext>(), It.IsAny<CorsPolicy>()))
904
o => o.
EvaluatePolicy
(It.IsAny<HttpContext>(), policy),
Microsoft.AspNetCore.Mvc.Cors (1)
CorsAuthorizationFilter.cs (1)
86
var result = _corsService.
EvaluatePolicy
(context.HttpContext, policy);
Microsoft.AspNetCore.Mvc.Cors.Test (2)
CorsAuthorizationFilterTest.cs (2)
171
.Setup(o => o.
EvaluatePolicy
(It.IsAny<HttpContext>(), It.IsAny<CorsPolicy>()))
188
.Setup(o => o.
EvaluatePolicy
(It.IsAny<HttpContext>(), It.IsAny<CorsPolicy>()))