Class DotNetNukeContext
Defines the context for the environment of the DotNetNuke application.
Inheritance
Implements
Namespace: DotNetNuke.Application
Assembly: DotNetNuke.dll
Syntax
public class DotNetNukeContext : object, IDnnContext
Constructors
| Improve this Doc View SourceDotNetNukeContext()
Initializes a new instance of the DotNetNukeContext class.
Declaration
protected DotNetNukeContext()
Remarks
Initialize using the public constructor for Dependency Injection, this method will be removed.
DotNetNukeContext(IApplicationInfo)
Initializes a new instance of the DotNetNukeContext class using the provided application as base.
Declaration
public DotNetNukeContext(IApplicationInfo applicationInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| IApplicationInfo | applicationInfo | The application. |
Remarks
This constructor is designed to be used with Dependency Injection.
DotNetNukeContext(Application)
Initializes a new instance of the DotNetNukeContext class.
Declaration
protected DotNetNukeContext(Application application)
Parameters
| Type | Name | Description |
|---|---|---|
| Application | application | A reference to the .Net application. |
Remarks
Initialize using the public constructor for Dependency Injection, this method will be removed.
Properties
| Improve this Doc View SourceApplication
Gets get the application.
Declaration
public Application Application { get; }
Property Value
| Type | Description |
|---|---|
| Application |
ContainerEventListeners
Gets the container event listeners. The listeners will be called in each life cycle of load container.
Declaration
public IList<ContainerEventListener> ContainerEventListeners { get; }
Property Value
| Type | Description |
|---|---|
| IList<ContainerEventListener> |
See Also
| Improve this Doc View SourceCurrent
Gets or sets the current app context.
Declaration
public static DotNetNukeContext Current { get; set; }
Property Value
| Type | Description |
|---|---|
| DotNetNukeContext |
SkinEventListeners
Gets the skin event listeners. The listeners will be called in each life cycle of load skin.
Declaration
public IList<SkinEventListener> SkinEventListeners { get; }
Property Value
| Type | Description |
|---|---|
| IList<SkinEventListener> |
See Also
Explicit Interface Implementations
| Improve this Doc View SourceIDnnContext.Application
Gets get the application.
Declaration
IApplicationInfo IDnnContext.Application { get; }
Returns
| Type | Description |
|---|---|
| IApplicationInfo |