Table of Contents

Interface IEditionService

Namespace
ToSic.Sxc.Render.Polymorphism.Sys
Assembly
ToSic.Sxc.Engines.dll

Mini service to read the polymorph config of the app and then resolve the edition based on an IPolymorphismResolver

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public interface IEditionService

Methods

Edition(IBlock)

Try to get the edition based on the block information. If the view is not ready, it will return null.

string? Edition(IBlock block)

Parameters

block IBlock

Returns

string

Edition(IView?, IAppReader)

Try to use the edition set by the view (like in preview mode) or to use this same PolymorphConfigReader to figure out the edition. Since the reader should only be created if necessary, it's handed in as a function.

string? Edition(IView? view, IAppReader appReader)

Parameters

view IView
appReader IAppReader

Returns

string