Class Api12
Base Class for modern Api Controllers in Dnn
Class Custom.Dnn.Api12 for Dnn ☢️
This is the Dnn specific base class. It's the very same as Custom.Hybrid.Api12
except for the additional Dnn
Property.
Because of this, the documentation here only shows Dnn
- for all other properties go to Custom.Hybrid.Api12
Tip
If you don't need these special properties, we strongly suggest to move to the Hybrid implementation.
Inheritance
System.Object
System.Web.Http.ApiController
DotNetNuke.Web.Api.DnnApiController
ToSic.Sxc.Dnn.WebApi.DnnApiControllerWithFixes<ToSic.Eav.WebApi.DummyControllerReal>
ToSic.Sxc.WebApi.SxcApiControllerBase<ToSic.Eav.WebApi.DummyControllerReal>
ToSic.Sxc.WebApi.DynamicApiController
Api12
Implements
Inherited Members
Namespace: Custom.Dnn
Assembly: ToSic.Sxc.Dnn.WebApi.dll
Syntax
[PublicApi_Stable_ForUseInYourCode("This is the official base class for v12+")]
public abstract class Api12 : Api12, IHttpController, IDisposable, IDynamicCodeBeforeV10, IDynamicCode12, ICompatibleToCode12, IHasDynamicCodeRoot, IHasCodeLog, IDnnDynamicWebApi, IDynamicWebApi, IDnnDynamicCode, IDynamicCode, ICreateInstance, ICompatibilityLevel, IHasLog, IDnnDynamicCodeAdditions
Constructors
| Improve this Doc View SourceApi12()
Declaration
protected Api12()
Api12(String)
Declaration
protected Api12(string logSuffix)
Parameters
Type | Name | Description |
---|---|---|
System.String | logSuffix |
Properties
| Improve this Doc View SourceDnn
The DNN context.
Declaration
public IDnnContext Dnn { get; }
Property Value
Type | Description |
---|---|
IDnnContext | The DNN context. |