Dela via


CorsService.EvaluateRequest(HttpContext, CorsPolicy, CorsResult) Method

Definition

Evaluate a request using the specified policy. The result is set on the specified CorsResult instance.

public:
 virtual void EvaluateRequest(Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::AspNetCore::Cors::Infrastructure::CorsPolicy ^ policy, Microsoft::AspNetCore::Cors::Infrastructure::CorsResult ^ result);
public virtual void EvaluateRequest (Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy, Microsoft.AspNetCore.Cors.Infrastructure.CorsResult result);
abstract member EvaluateRequest : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy * Microsoft.AspNetCore.Cors.Infrastructure.CorsResult -> unit
override this.EvaluateRequest : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy * Microsoft.AspNetCore.Cors.Infrastructure.CorsResult -> unit
Public Overridable Sub EvaluateRequest (context As HttpContext, policy As CorsPolicy, result As CorsResult)

Parameters

context
HttpContext

The current HTTP context.

policy
CorsPolicy

The CorsPolicy to evaluate.

result
CorsResult

The CorsResult to set the result on.

Applies to