View Source
Class ControllerExtensions
Inheritance
System.Object
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