DefaultActionSelector Class¶
Constructors¶
-
DefaultActionSelector
(Microsoft.AspNet.Mvc.IActionDescriptorsCollectionProvider, Microsoft.AspNet.Mvc.Routing.IActionSelectorDecisionTreeProvider, System.Collections.Generic.IEnumerable<Microsoft.AspNet.Mvc.ActionConstraints.IActionConstraintProvider>, ILoggerFactory)¶ Arguments: - actionDescriptorsCollectionProvider (Microsoft.AspNet.Mvc.IActionDescriptorsCollectionProvider) –
- decisionTreeProvider (Microsoft.AspNet.Mvc.Routing.IActionSelectorDecisionTreeProvider) –
- actionConstraintProviders (System.Collections.Generic.IEnumerable{Microsoft.AspNet.Mvc.ActionConstraints.IActionConstraintProvider}) –
- loggerFactory (ILoggerFactory) –
public DefaultActionSelector(IActionDescriptorsCollectionProvider actionDescriptorsCollectionProvider, IActionSelectorDecisionTreeProvider decisionTreeProvider, IEnumerable<IActionConstraintProvider> actionConstraintProviders, ILoggerFactory loggerFactory)
-
Methods¶
-
HasValidAction
(VirtualPathContext)¶ Arguments: - context (VirtualPathContext) –
Return type: System.Boolean
public virtual bool HasValidAction(VirtualPathContext context)
-
SelectAsync
(RouteContext)¶ Arguments: - context (RouteContext) –
Return type: System.Threading.Tasks.Task{Microsoft.AspNet.Mvc.ActionDescriptor}
public Task<ActionDescriptor> SelectAsync(RouteContext context)
-
SelectBestActions
(System.Collections.Generic.IReadOnlyList<Microsoft.AspNet.Mvc.ActionDescriptor>)¶ Returns the set of best matching actions.
Arguments: - actions (System.Collections.Generic.IReadOnlyList{Microsoft.AspNet.Mvc.ActionDescriptor}) – The set of actions that satisfy all constraints.
Return type: System.Collections.Generic.IReadOnlyList{Microsoft.AspNet.Mvc.ActionDescriptor}
Returns: A list of the best matching actions.
protected virtual IReadOnlyList<ActionDescriptor> SelectBestActions(IReadOnlyList<ActionDescriptor> actions)
-