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 ControllerActionSearcher class.
Declaration
public ControllerActionSearcher(ILogger<ControllerActionSearcher> logger, IActionSelector actionSelector)
Parameters
| Type | Name | Description |
|---|---|---|
| ILogger<ControllerActionSearcher> | logger | |
| IActionSelector | 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 |
|---|---|---|
| HttpContext | httpContext | |
| System.String | controller | |
| System.String | action |
Returns
| Type | Description |
|---|---|
| System.Nullable<ControllerActionDescriptor> |
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 |
|---|---|---|
| HttpContext | httpContext | |
| System.String | controller | |
| System.String | action | |
| System.String | area |
Returns
| Type | Description |
|---|---|
| System.Nullable<ControllerActionDescriptor> |
Type Parameters
| Name | Description |
|---|---|
| T | The controller type to find |