Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    ControllerActionSearcher(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 Source

    Find<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

    View Source

    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

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ControllerActionSearcher(ILogger<ControllerActionSearcher>, IActionSelector)
    • Methods
      • Find<T>(HttpContext, String, String)
      • Find<T>(HttpContext, String, String, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX