Nucleus .Net Core CMS

Models.Context Class

Namespace: Nucleus.Abstractions.Models
Assembly: Nucleus.Abstractions.dll
Encapsulates information about the current request.

Remarks

Get a reference to the Context class by using dependency injection. The class is populated by Nucleus.Core.LayoutPageRoutingMiddleware and Nucleus.Core.LayoutModuleRoutingMiddleware and can be used in extensions.

Properties

Site Property

The site being accessed.

Page Property

The page being accessed.

Module Property

The module being accessed.
Remarks
This property is set when rendering a module and when an extension route is used to call a controller action, or to get the output of a single module only. It is NULL otherwise See Nucleus.Core.LayoutModuleRoutingMiddleware for information on extension routes.

LocalPath Property

Represents parameters which are specified at the end of the local (page route) path.

MatchedRoute Property

The page route which was matched to find the page.