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