EndpointSelector.SelectAsync 方法

定义

重载

SelectAsync(HttpContext, CandidateSet)

CandidateSet异步选择 Endpoint

SelectAsync(HttpContext, EndpointSelectorContext, CandidateSet)

CandidateSet异步选择 Endpoint

SelectAsync(HttpContext, CandidateSet)

Source:
EndpointSelector.cs

CandidateSet异步选择 Endpoint

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

参数

httpContext
HttpContext

HttpContext 当前请求关联的 。

candidates
CandidateSet

CandidateSet

返回

终结点 Task 选择完成后异步完成的 。

注解

EndpointSelector选择终结点后,应通过调用 SetEndpoint(HttpContext, Endpoint) 和 设置RouteValues来分配终结点。

适用于

SelectAsync(HttpContext, EndpointSelectorContext, CandidateSet)

CandidateSet异步选择 Endpoint

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

参数

httpContext
HttpContext

HttpContext 当前请求关联的 。

context
EndpointSelectorContext

EndpointSelectorContext 当前请求关联的 。

candidates
CandidateSet

CandidateSet

返回

终结点 Task 选择完成后异步完成的 。

注解

EndpointSelector选择终结点后, Endpoint 应分配 和 RouteValues 属性。

适用于