Class PluginController
Provides a base class for plugin controllers.
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
Microsoft.AspNetCore.Mvc.Controller
Namespace: Umbraco.Cms.Web.Common.Controllers
Assembly: Umbraco.Web.Common.dll
Syntax
public abstract class PluginController : Controller, IActionFilter, IAsyncActionFilter, IFilterMetadata, IDisposable
Constructors
View SourcePluginController(IUmbracoContextAccessor, IUmbracoDatabaseFactory, ServiceContext, AppCaches, IProfilingLogger)
Declaration
protected PluginController(IUmbracoContextAccessor umbracoContextAccessor, IUmbracoDatabaseFactory databaseFactory, ServiceContext services, AppCaches appCaches, IProfilingLogger profilingLogger)
Parameters
| Type | Name | Description |
|---|---|---|
| IUmbraco |
umbracoContextAccessor | |
| IUmbraco |
databaseFactory | |
| Service |
services | |
| App |
appCaches | |
| IProfiling |
profilingLogger |
Properties
View SourceAppCaches
Gets or sets the application cache.
Declaration
public AppCaches AppCaches { get; }
Property Value
| Type | Description |
|---|---|
| App |
DatabaseFactory
Gets the database context.
Declaration
public IUmbracoDatabaseFactory DatabaseFactory { get; }
Property Value
| Type | Description |
|---|---|
| IUmbraco |
ProfilingLogger
Gets or sets the profiling logger.
Declaration
public IProfilingLogger ProfilingLogger { get; }
Property Value
| Type | Description |
|---|---|
| IProfiling |
Services
Gets or sets the services context.
Declaration
public ServiceContext Services { get; }
Property Value
| Type | Description |
|---|---|
| Service |
UmbracoContext
Gets the Umbraco context.
Declaration
public virtual IUmbracoContext UmbracoContext { get; }
Property Value
| Type | Description |
|---|---|
| IUmbraco |
UmbracoContextAccessor
Gets the database context accessor.
Declaration
public virtual IUmbracoContextAccessor UmbracoContextAccessor { get; }
Property Value
| Type | Description |
|---|---|
| IUmbraco |
Methods
View SourceGetMetadata(Type)
Gets metadata for a controller type.
Declaration
public static PluginControllerMetadata GetMetadata(Type controllerType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | controllerType | The controller type. |
Returns
| Type | Description |
|---|---|
| Plugin |
Metadata for the controller type. |