Class PluginController
- Namespace
- Umbraco.Cms.Web.Common.Controllers
- Assembly
- Umbraco.Web.Common.dll
Provides a base class for plugin controllers.
public abstract class PluginController : Controller, IActionFilter, IAsyncActionFilter, IFilterMetadata, IDisposable, IDiscoverable
- Inheritance
-
PluginController
- Implements
-
IDiscoverable
- Inherited Members
- Extension Methods
Constructors
PluginController(IUmbracoContextAccessor, IUmbracoDatabaseFactory, ServiceContext, AppCaches, IProfilingLogger)
protected PluginController(IUmbracoContextAccessor umbracoContextAccessor, IUmbracoDatabaseFactory databaseFactory, ServiceContext services, AppCaches appCaches, IProfilingLogger profilingLogger)
Parameters
umbracoContextAccessorIUmbracoContextAccessordatabaseFactoryIUmbracoDatabaseFactoryservicesServiceContextappCachesAppCachesprofilingLoggerIProfilingLogger
Properties
AppCaches
Gets or sets the application cache.
public AppCaches AppCaches { get; }
Property Value
- AppCaches
DatabaseFactory
Gets the database context.
public IUmbracoDatabaseFactory DatabaseFactory { get; }
Property Value
- IUmbracoDatabaseFactory
ProfilingLogger
Gets or sets the profiling logger.
public IProfilingLogger ProfilingLogger { get; }
Property Value
- IProfilingLogger
Services
Gets or sets the services context.
public ServiceContext Services { get; }
Property Value
- ServiceContext
UmbracoContext
Gets the Umbraco context.
public virtual IUmbracoContext UmbracoContext { get; }
Property Value
- IUmbracoContext
UmbracoContextAccessor
Gets the database context accessor.
public virtual IUmbracoContextAccessor UmbracoContextAccessor { get; }
Property Value
- IUmbracoContextAccessor
Methods
GetMetadata(Type)
Gets metadata for a controller type.
public static PluginControllerMetadata GetMetadata(Type controllerType)
Parameters
controllerTypeTypeThe controller type.
Returns
- PluginControllerMetadata
Metadata for the controller type.