Class ControllerActionSearcher
Used to find a controller/action in the current available routes
Inheritance
System.Object
Namespace: Umbraco.Cms.Web.Website.Routing
Assembly: Umbraco.Web.Website.dll
Syntax
public class ControllerActionSearcher : IControllerActionSearcher
Constructors
View SourceControllerActionSearcher(ILogger<ControllerActionSearcher>, IActionSelector)
Initializes a new instance of the Controller
Declaration
public ControllerActionSearcher(ILogger<ControllerActionSearcher> logger, IActionSelector actionSelector)
Parameters
Type | Name | Description |
---|---|---|
ILogger<Controller |
logger | |
IAction |
actionSelector |
Methods
View SourceFind<T>(HttpContext, String, String)
Determines if a custom controller can hijack the current route
Declaration
public ControllerActionDescriptor? Find<T>(HttpContext httpContext, string controller, string action)
Parameters
Type | Name | Description |
---|---|---|
Http |
httpContext | |
System. |
controller | |
System. |
action |
Returns
Type | Description |
---|---|
System. |
Type Parameters
Name | Description |
---|---|
T | The controller type to find |
Find<T>(HttpContext, String, String, String)
Determines if a custom controller can hijack the current route
Declaration
public ControllerActionDescriptor? Find<T>(HttpContext httpContext, string controller, string action, string area)
Parameters
Type | Name | Description |
---|---|---|
Http |
httpContext | |
System. |
controller | |
System. |
action | |
System. |
area |
Returns
Type | Description |
---|---|
System. |
Type Parameters
Name | Description |
---|---|
T | The controller type to find |