Class Api12
Base Class for Api Controllers for Dnn ☢️ only.
This is the Dnn specific base class. It's the very same as Custom.Hybrid.Api12
except for the additional Dnn
Property.
If you inherit from this class, you'll automatically have all the properties from DynamicCode.
Because of this, the documentation here only shows Dnn
- for all other properties go to Custom.Hybrid.Api12
Tip
If you don't need the Dnn
object, we strongly suggest to move to the Hybrid implementation.
The latest Hybrid base classes also have many new features and are easier to use. See Custom.Hybrid for more information.
[PublicApi("This is the official base class for v12+")]
public abstract class Api12 : Api12, IDnnDynamicCode, IHasLog, IHasDnn
- Inheritance
-
DnnApiControllerApi12
- Implements
- Inherited Members
Constructors
Api12()
protected Api12()
Api12(string)
This is the base class for all custom API Controllers.
With this, your code receives the full context incl. the current App, DNN, Data, etc.
protected Api12(string logSuffix)
Parameters
logSuffix
string
Properties
Dnn
The DNN context. Has various objects to access the Dnn Page, etc.
public IDnnContext Dnn { get; }