24 instantiations of CorsResult
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsService.cs (1)
79
var corsResult = new
CorsResult
Microsoft.AspNetCore.Cors.Test (22)
CorsMiddlewareTests.cs (2)
846
.Returns(new
CorsResult
())
883
.Returns(new
CorsResult
())
CorsResultTests.cs (3)
12
var result = new
CorsResult
();
27
var result = new
CorsResult
();
45
var corsResult = new
CorsResult
CorsServiceTests.cs (17)
565
var result = new
CorsResult
();
580
var result = new
CorsResult
600
var result = new
CorsResult
620
var result = new
CorsResult
640
var result = new
CorsResult
660
var result = new
CorsResult
681
var result = new
CorsResult
701
var result = new
CorsResult
721
var result = new
CorsResult
742
var result = new
CorsResult
762
var result = new
CorsResult
783
var result = new
CorsResult
803
var result = new
CorsResult
824
var result = new
CorsResult
845
var result = new
CorsResult
865
var result = new
CorsResult
886
var result = new
CorsResult
Microsoft.AspNetCore.Mvc.Cors.Test (1)
CorsAuthorizationFilterTest.cs (1)
231
var result = new
CorsResult
();
75 references to CorsResult
Microsoft.AspNetCore.Cors (18)
Infrastructure\CorsMiddleware.cs (2)
176
var
corsResult = CorsService.EvaluatePolicy(context, corsPolicy);
195
var (middleware, context, result) = (Tuple<CorsMiddleware, HttpContext,
CorsResult
>)state;
Infrastructure\CorsService.cs (12)
42
/// <returns>A <see cref="
CorsResult
"/> which contains the result of policy evaluation and can be
44
public
CorsResult
EvaluatePolicy(HttpContext context, string policyName)
58
public
CorsResult
EvaluatePolicy(HttpContext context, CorsPolicy policy)
79
var
corsResult = new CorsResult
97
private static void PopulateResult(HttpContext context, CorsPolicy policy,
CorsResult
result)
130
/// Evaluate a request using the specified policy. The result is set on the specified <see cref="
CorsResult
"/> instance.
134
/// <param name="result">The <see cref="
CorsResult
"/> to set the result on.</param>
135
public virtual void EvaluateRequest(HttpContext context, CorsPolicy policy,
CorsResult
result)
141
/// Evaluate a preflight request using the specified policy. The result is set on the specified <see cref="
CorsResult
"/> instance.
145
/// <param name="result">The <see cref="
CorsResult
"/> to set the result on.</param>
146
public virtual void EvaluatePreflightRequest(HttpContext context, CorsPolicy policy,
CorsResult
result)
152
public virtual void ApplyResult(
CorsResult
result, HttpResponse response)
Infrastructure\ICorsService.cs (4)
18
/// <returns>A <see cref="
CorsResult
"/> which contains the result of policy evaluation and can be
20
CorsResult
EvaluatePolicy(HttpContext context, CorsPolicy policy);
25
/// <param name="result">The <see cref="
CorsResult
"/> used to read the allowed values.</param>
27
void ApplyResult(
CorsResult
result, HttpResponse response);
Microsoft.AspNetCore.Cors.Test (50)
CorsResultTests.cs (3)
12
var
result = new CorsResult();
27
var
result = new CorsResult();
45
var
corsResult = new CorsResult
CorsServiceTests.cs (47)
40
var
result = corsService.EvaluatePolicy(requestContext, new CorsPolicy());
57
var
result = corsService.EvaluatePolicy(requestContext, policy);
72
var
result = corsService.EvaluatePolicy(requestContext, policy);
91
var
result = corsService.EvaluatePolicy(requestContext, policy);
112
var
result = corsService.EvaluatePolicy(requestContext, policy);
128
var
result = corsService.EvaluatePolicy(requestContext, policy);
147
var
result = corsService.EvaluatePolicy(requestContext, policy);
166
var
result = corsService.EvaluatePolicy(requestContext, policy);
182
var
result = corsService.EvaluatePolicy(requestContext, policy);
199
var
result = corsService.EvaluatePolicy(requestContext, policy);
217
var
result = corsService.EvaluatePolicy(requestContext, policy);
234
var
result = corsService.EvaluatePolicy(requestContext, policy);
251
var
result = corsService.EvaluatePolicy(requestContext, policy);
268
var
result = corsService.EvaluatePolicy(requestContext, policy);
287
var
result = corsService.EvaluatePolicy(requestContext, policy);
304
var
result = corsService.EvaluatePolicy(requestContext, policy);
321
var
result = corsService.EvaluatePolicy(requestContext, policy);
345
var
result = corsService.EvaluatePolicy(requestContext, policy);
367
var
result = corsService.EvaluatePolicy(requestContext, policy);
387
var
result = corsService.EvaluatePolicy(requestContext, policy);
407
var
result = corsService.EvaluatePolicy(requestContext, policy);
427
var
result = corsService.EvaluatePolicy(requestContext, policy);
444
var
result = corsService.EvaluatePolicy(requestContext, policy);
467
var
result = corsService.EvaluatePolicy(requestContext, policy);
485
var
result = corsService.EvaluatePolicy(requestContext, policy);
508
var
result = corsService.EvaluatePolicy(requestContext, policy);
532
var
result = corsService.EvaluatePolicy(requestContext, policy);
552
var
result = corsService.EvaluatePolicy(httpContext, policy);
565
var
result = new CorsResult();
580
var
result = new CorsResult
600
var
result = new CorsResult
620
var
result = new CorsResult
640
var
result = new CorsResult
660
var
result = new CorsResult
681
var
result = new CorsResult
701
var
result = new CorsResult
721
var
result = new CorsResult
742
var
result = new CorsResult
762
var
result = new CorsResult
783
var
result = new CorsResult
803
var
result = new CorsResult
824
var
result = new CorsResult
845
var
result = new CorsResult
865
var
result = new CorsResult
886
var
result = new CorsResult
913
var
result = corsService.EvaluatePolicy(requestContext, policy);
931
var
result = corsService.EvaluatePolicy(requestContext, policy);
Microsoft.AspNetCore.Mvc.Cors (1)
CorsAuthorizationFilter.cs (1)
86
var
result = _corsService.EvaluatePolicy(context.HttpContext, policy);
Microsoft.AspNetCore.Mvc.Cors.Test (6)
CorsAuthorizationFilterTest.cs (6)
168
var
result = GetCorsResult("http://example.com");
179
var
result = GetCorsResult(
192
.Setup(o => o.ApplyResult(It.IsAny<
CorsResult
>(), It.IsAny<HttpResponse>()))
193
.Callback<
CorsResult
, HttpResponse>((result1, response1) =>
223
private
CorsResult
GetCorsResult(
231
var
result = new CorsResult();