EndpointSelector.SelectAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
返回
终结点 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
返回
终结点 Task 选择完成后异步完成的 。
注解
EndpointSelector选择终结点后, Endpoint 应分配 和 RouteValues 属性。