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 |
---|---|---|
Microsoft.Extensions.Logging.ILogger<ControllerActionSearcher> | logger | |
Microsoft.AspNetCore.Mvc.Infrastructure.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 |
---|---|---|
Microsoft.AspNetCore.Http.HttpContext | httpContext | |
System.String | controller | |
System.String | action |
Returns
Type | Description |
---|---|
Microsoft.AspNetCore.Mvc.Controllers.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 |
---|---|---|
Microsoft.AspNetCore.Http.HttpContext | httpContext | |
System.String | controller | |
System.String | action | |
System.String | area |
Returns
Type | Description |
---|---|
Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor |
Type Parameters
Name | Description |
---|---|
T | The controller type to find |