Table of Contents

Interface IBlock

Namespace
ToSic.Sxc.Blocks.Sys
Assembly
ToSic.Sxc.Blocks.dll

INTERNAL: A unit / block of output in a CMS.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public interface IBlock : IAppIdentity, IZoneIdentity, IAppIdentityLight
Inherited Members

Properties

App

The app this block is running in

IApp App { get; }

Property Value

IApp

AppOrNull

IApp? AppOrNull { get; }

Property Value

IApp

ConfigurationIsReady

bool ConfigurationIsReady { get; }

Property Value

bool

Context

The context we're running in, with tenant, container etc.

IContextOfBlock Context { get; }

Property Value

IContextOfBlock

Data

The DataSource which delivers data for this block (will be used by the IEngine together with the View)

IDataSource Data { get; }

Property Value

IDataSource

DataIsReady

bool DataIsReady { get; }

Property Value

bool

DependentApps

This list is only populated on the root builder. Child builders don't actually use this.

List<IDependentApp> DependentApps { get; }

Property Value

List<IDependentApp>

Remarks

Must be a real List, because we will add things to it later. In the future, should be modified to be read only list, but only once rendering has been improved to pass the data around in a better way.

IsInnerBlock

bool IsInnerBlock { get; }

Property Value

bool

View

The view which will be used to render this block

IView View { get; }

Property Value

IView

ViewIsReady

bool ViewIsReady { get; }

Property Value

bool