Search Results for

    Show / Hide Table of Contents
    View Source

    Class ControllerExtensions

    Inheritance
    System.Object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Web.Common.dll
    Syntax
    public static class ControllerExtensions

    Methods

    View Source

    AuthenticateBackOfficeAsync(ControllerBase)

    Runs the authentication process

    Declaration
    public static async Task<AuthenticateResult> AuthenticateBackOfficeAsync(this ControllerBase controller)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Mvc.ControllerBase controller
    Returns
    Type Description
    Task<Microsoft.AspNetCore.Authentication.AuthenticateResult>
    View Source

    GetControllerName(Controller)

    Return the controller name from the controller instance

    Declaration
    public static string GetControllerName(this Controller controllerInstance)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Mvc.Controller controllerInstance
    Returns
    Type Description
    System.String
    View Source

    GetControllerName(Type)

    Return the controller name from the controller type

    Declaration
    public static string GetControllerName(Type controllerType)
    Parameters
    Type Name Description
    Type controllerType
    Returns
    Type Description
    System.String
    View Source

    GetControllerName<T>()

    Return the controller name from the controller type

    Declaration
    public static string GetControllerName<T>()
    Returns
    Type Description
    System.String
    Type Parameters
    Name Description
    T
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • AuthenticateBackOfficeAsync(ControllerBase)
      • GetControllerName(Controller)
      • GetControllerName(Type)
      • GetControllerName<T>()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX