IActionSelector Interface

Defines an interface for selecting an MVC action to invoke for the current request.

Namespace
Microsoft.AspNetCore.Mvc.Infrastructure
Assemblies
  • Microsoft.AspNetCore.Mvc.Core

Syntax

public interface IActionSelector
interface Microsoft.AspNetCore.Mvc.Infrastructure.IActionSelector

Methods

SelectBestCandidate(Microsoft.AspNetCore.Routing.RouteContext, System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor>)

Selects the best Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor candidate from <em>candidates</em> for the current request associated with <em>context</em>.

Arguments:
Return type:

Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor

Returns:

The best Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor candidate for the current request or <code>null</code>.

ActionDescriptor SelectBestCandidate(RouteContext context, IReadOnlyList<ActionDescriptor> candidates)
SelectCandidates(Microsoft.AspNetCore.Routing.RouteContext)

Selects a set of Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor candidates for the current request associated with <em>context</em>.

Arguments:context (Microsoft.AspNetCore.Routing.RouteContext) – The Microsoft.AspNetCore.Routing.RouteContext associated with the current request.
Return type:System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor>
Returns:A set of Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor candidates or <code>null</code>.
IReadOnlyList<ActionDescriptor> SelectCandidates(RouteContext context)