Class PluginController
Provides a base class for plugin controllers.
Inheritance
System.Object
Namespace: Umbraco.Web.Mvc
Assembly: Umbraco.Web.dll
Syntax
public abstract class PluginController : Controller, IDiscoverable
Constructors
View SourcePluginController()
Declaration
protected PluginController()
PluginController(IUmbracoContextAccessor, IUmbracoDatabaseFactory, ServiceContext, AppCaches, ILogger, IProfilingLogger, UmbracoHelper)
Declaration
protected PluginController(IUmbracoContextAccessor umbracoContextAccessor, IUmbracoDatabaseFactory databaseFactory, ServiceContext services, AppCaches appCaches, ILogger logger, IProfilingLogger profilingLogger, UmbracoHelper umbracoHelper)
Parameters
Type | Name | Description |
---|---|---|
IUmbracoContextAccessor | umbracoContextAccessor | |
IUmbracoDatabaseFactory | databaseFactory | |
ServiceContext | services | |
AppCaches | appCaches | |
ILogger | logger | |
IProfilingLogger | profilingLogger | |
UmbracoHelper | umbracoHelper |
Properties
View SourceAppCaches
Gets or sets the application cache.
Declaration
public AppCaches AppCaches { get; }
Property Value
Type | Description |
---|---|
AppCaches |
DatabaseFactory
Gets the database context.
Declaration
public IUmbracoDatabaseFactory DatabaseFactory { get; }
Property Value
Type | Description |
---|---|
IUmbracoDatabaseFactory |
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 |
ProfilingLogger
Gets or sets the profiling logger.
Declaration
public IProfilingLogger ProfilingLogger { get; }
Property Value
Type | Description |
---|---|
IProfilingLogger |
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 the database context accessor.
Declaration
public virtual IUmbracoContextAccessor UmbracoContextAccessor { get; }
Property Value
Type | Description |
---|---|
IUmbracoContextAccessor |