Table of Contents

Class ControllerExtensions

Namespace
Umbraco.Extensions
Assembly
Umbraco.Web.Common.dll
public static class ControllerExtensions
Inheritance
ControllerExtensions
Inherited Members

Methods

AuthenticateBackOfficeAsync(ControllerBase)

Runs the authentication process

public static Task<AuthenticateResult> AuthenticateBackOfficeAsync(this ControllerBase controller)

Parameters

controller ControllerBase

Returns

Task<AuthenticateResult>

GetControllerName(Controller)

Return the controller name from the controller instance

public static string GetControllerName(this Controller controllerInstance)

Parameters

controllerInstance Controller

Returns

string

GetControllerName(Type)

Return the controller name from the controller type

public static string GetControllerName(Type controllerType)

Parameters

controllerType Type

Returns

string

GetControllerName<T>()

Return the controller name from the controller type

public static string GetControllerName<T>()

Returns

string

Type Parameters

T