Class UmbracoController
Provides a base class for Umbraco controllers.
Inheritance
System.Object
Namespace: Umbraco.Web.Mvc
Assembly: Umbraco.Web.dll
Syntax
public abstract class UmbracoController : Controller
Constructors
View SourceUmbracoController()
Declaration
protected UmbracoController()
UmbracoController(IGlobalSettings, IUmbracoContextAccessor, ServiceContext, AppCaches, IProfilingLogger, UmbracoHelper)
Declaration
protected UmbracoController(IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ServiceContext services, AppCaches appCaches, IProfilingLogger profilingLogger, UmbracoHelper umbracoHelper)
Parameters
Type | Name | Description |
---|---|---|
IGlobalSettings | globalSettings | |
IUmbracoContextAccessor | umbracoContextAccessor | |
ServiceContext | services | |
AppCaches | appCaches | |
IProfilingLogger | profilingLogger | |
UmbracoHelper | umbracoHelper |
Properties
View SourceAppCaches
Gets or sets the application cache.
Declaration
public AppCaches AppCaches { get; }
Property Value
Type | Description |
---|---|
AppCaches |
GlobalSettings
Gets or sets the Umbraco context.
Declaration
public IGlobalSettings GlobalSettings { get; }
Property Value
Type | Description |
---|---|
IGlobalSettings |
Logger
Gets or sets the logger.
Declaration
public ILogger Logger { get; }
Property Value
Type | Description |
---|---|
ILogger |
Members
Gets the membership helper.
Declaration
public MembershipHelper Members { get; }
Property Value
Type | Description |
---|---|
MembershipHelper |
OwinContext
Declaration
protected IOwinContext OwinContext { get; }
Property Value
Type | Description |
---|---|
IOwinContext |
ProfilingLogger
Gets or sets the profiling logger.
Declaration
public IProfilingLogger ProfilingLogger { get; set; }
Property Value
Type | Description |
---|---|
IProfilingLogger |
Security
Gets the web security helper.
Declaration
public virtual WebSecurity Security { get; }
Property Value
Type | Description |
---|---|
WebSecurity |
Services
Gets or sets the services context.
Declaration
public ServiceContext Services { get; }
Property Value
Type | Description |
---|---|
ServiceContext |
Umbraco
Gets the Umbraco helper.
Declaration
public UmbracoHelper Umbraco { get; }
Property Value
Type | Description |
---|---|
UmbracoHelper |
UmbracoContext
Gets the Umbraco context.
Declaration
public virtual UmbracoContext UmbracoContext { get; }
Property Value
Type | Description |
---|---|
UmbracoContext |
UmbracoContextAccessor
Gets or sets the Umbraco context accessor.
Declaration
public virtual IUmbracoContextAccessor UmbracoContextAccessor { get; set; }
Property Value
Type | Description |
---|---|
IUmbracoContextAccessor |