Compartir a través de


EndpointSelector.SelectAsync Método

Definición

Sobrecargas

SelectAsync(HttpContext, CandidateSet)

Selecciona de forma asincrónica un de Endpoint .CandidateSet

SelectAsync(HttpContext, EndpointSelectorContext, CandidateSet)

Selecciona de forma asincrónica un de Endpoint .CandidateSet

SelectAsync(HttpContext, CandidateSet)

Source:
EndpointSelector.cs

Selecciona de forma asincrónica un de Endpoint .CandidateSet

public:
 abstract System::Threading::Tasks::Task ^ SelectAsync(Microsoft::AspNetCore::Http::HttpContext ^ httpContext, Microsoft::AspNetCore::Routing::Matching::CandidateSet ^ candidates);
public abstract System.Threading.Tasks.Task SelectAsync (Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.Matching.CandidateSet candidates);
abstract member SelectAsync : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Routing.Matching.CandidateSet -> System.Threading.Tasks.Task
Public MustOverride Function SelectAsync (httpContext As HttpContext, candidates As CandidateSet) As Task

Parámetros

httpContext
HttpContext

asociado HttpContext a la solicitud actual.

Devoluciones

que Task se completa de forma asincrónica una vez completada la selección del punto de conexión.

Comentarios

Debe EndpointSelector asignar el punto de conexión llamando SetEndpoint(HttpContext, Endpoint) a y estableciendo RouteValues una vez seleccionado un punto de conexión.

Se aplica a

SelectAsync(HttpContext, EndpointSelectorContext, CandidateSet)

Selecciona de forma asincrónica un de Endpoint .CandidateSet

public:
 abstract System::Threading::Tasks::Task ^ SelectAsync(Microsoft::AspNetCore::Http::HttpContext ^ httpContext, Microsoft::AspNetCore::Routing::EndpointSelectorContext ^ context, Microsoft::AspNetCore::Routing::Matching::CandidateSet ^ candidates);
public abstract System.Threading.Tasks.Task SelectAsync (Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.EndpointSelectorContext context, Microsoft.AspNetCore.Routing.Matching.CandidateSet candidates);
abstract member SelectAsync : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Routing.EndpointSelectorContext * Microsoft.AspNetCore.Routing.Matching.CandidateSet -> System.Threading.Tasks.Task
Public MustOverride Function SelectAsync (httpContext As HttpContext, context As EndpointSelectorContext, candidates As CandidateSet) As Task

Parámetros

httpContext
HttpContext

asociado HttpContext a la solicitud actual.

context
EndpointSelectorContext

asociado EndpointSelectorContext a la solicitud actual.

Devoluciones

que Task se completa de forma asincrónica una vez completada la selección del punto de conexión.

Comentarios

Debe EndpointSelector asignar las Endpoint propiedades y RouteValues una vez seleccionado un punto de conexión.

Se aplica a