Partilhar via


CorsService.EvaluateRequest(HttpContext, CorsPolicy, CorsResult) Método

Definição

Avalie uma solicitação usando a política especificada. O resultado é definido na instância especificada CorsResult .

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)

Parâmetros

context
HttpContext

O contexto HTTP atual.

policy
CorsPolicy

O CorsPolicy a ser avaliado.

result
CorsResult

O CorsResult no qual definir o resultado.

Aplica-se a