C# Class ToSic.SexyContent.SxcInstance

This is an instance-context of a Content-Module. It basically encapsulates the instance-state, incl. IDs of Zone & App, the App, EAV-Context, Template, Content-Groups (if available), Environment and OriginalModule (in case it's from another portal) It is needed for just about anything, because without this set of information it would be hard to get anything done . Note that it also adds the current-user to the state, so that the system can log data-changes to this user
Inheritance: ISxcInstance
Mostra file Open project: 2sic/2sxc Class Usage Examples

Public Properties

Property Type Description
Environment Environment.Environment

Private Properties

Property Type Description
CheckTemplateOverrides void
SxcInstance System
SxcInstance System
TryToGetTemplateBasedOnUrlParams Template

Public Methods

Method Description
GetRenderingEngine ( InstancePurposes renderingPurpose ) : IEngine
Render ( ) : System.Web.HtmlString

Private Methods

Method Description
CheckTemplateOverrides ( ) : void
SxcInstance ( IContentBlock cb, DotNetNuke.Entities.Modules.ModuleInfo runtimeModuleInfo, string>.IEnumerable urlparams = null ) : System
SxcInstance ( IContentBlock cb, SxcInstance runtimeInstance ) : System
TryToGetTemplateBasedOnUrlParams ( ) : Template

Method Details

GetRenderingEngine() public method

public GetRenderingEngine ( InstancePurposes renderingPurpose ) : IEngine
renderingPurpose InstancePurposes
return IEngine

Render() public method

public Render ( ) : System.Web.HtmlString
return System.Web.HtmlString

Property Details

Environment public_oe property

Environment - should be the place to refactor everything into, which is the host around 2sxc
public Environment.Environment Environment
return Environment.Environment