EndpointSelector.SelectAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SelectAsync(HttpContext, CandidateSet) |
Asynchronously selects an Endpoint from the CandidateSet. |
SelectAsync(HttpContext, EndpointSelectorContext, CandidateSet) |
Asynchronously selects an Endpoint from the CandidateSet. |
SelectAsync(HttpContext, CandidateSet)
- Source:
- EndpointSelector.cs
Asynchronously selects an Endpoint from the 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
Parameters
- httpContext
- HttpContext
The HttpContext associated with the current request.
- candidates
- CandidateSet
The CandidateSet.
Returns
A Task that completes asynchronously once endpoint selection is complete.
Remarks
An EndpointSelector should assign the endpoint by calling SetEndpoint(HttpContext, Endpoint) and setting RouteValues once an endpoint is selected.
Applies to
SelectAsync(HttpContext, EndpointSelectorContext, CandidateSet)
Asynchronously selects an Endpoint from the 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
Parameters
- httpContext
- HttpContext
The HttpContext associated with the current request.
- context
- EndpointSelectorContext
The EndpointSelectorContext associated with the current request.
- candidates
- CandidateSet
The CandidateSet.
Returns
A Task that completes asynchronously once endpoint selection is complete.
Remarks
An EndpointSelector should assign the Endpoint and RouteValues properties once an endpoint is selected.