Table of Contents

Class EngineBase

Namespace
ToSic.Sxc.Engines
Assembly
ToSic.Sxc.dll

The foundation for engines - must be inherited by other engines

[InternalApi_DoNotUse_MayChangeWithoutNotice("this is just fyi")]
public abstract class EngineBase : ServiceBase<EngineBase.MyServices>, IEngine, IHasLog
Inheritance
ServiceBase<EngineBase.MyServices>
EngineBase
Implements
Derived

Constructors

EngineBase(MyServices, object[])

Empty constructor, so it can be used in dependency injection

protected EngineBase(EngineBase.MyServices services, object[] connect = null)

Parameters

services EngineBase.MyServices
connect object[]

Methods

Init(IBlock)

public virtual void Init(IBlock block)

Parameters

block IBlock

Render(RenderSpecs)

Renders a template, returning a string with the rendered template.

public virtual RenderEngineResult Render(RenderSpecs specs)

Parameters

specs RenderSpecs

Returns

RenderEngineResult

The string - usually HTML - which the engine created.