Table of Contents

Class SxcUiContextPartsService

Namespace
ToSic.Sxc.Ui.Context.Sys
Assembly
ToSic.Sxc.WebApi.dll
[InternalApi_DoNotUse_MayChangeWithoutNotice]
public sealed class SxcUiContextPartsService : ServiceBase, IHasLog, IUiContextPartsService, IServiceWithSetup<IAppReader?>
Inheritance
object
SxcUiContextPartsService
Implements
IServiceWithSetup<IAppReader>

Remarks

This is sealed on purpose, to encourage composition over inheritance. If you want to implement your own version, implement the interface instead of inheriting from this class.

This service is registered both as the default IUiContextPartsService but also with its own name SxcUiContextPartsService. Overriding implementations would use SxcUiContextPartsService as a dependency, and pre-register as the default IUiContextPartsService to override the default implementation.

Methods

GetApp(Ctx)

public ContextAppDto? GetApp(Ctx flags)

Parameters

flags Ctx

Returns

ContextAppDto

GetEnable(CtxEnable)

public ContextEnableDto GetEnable(CtxEnable ctx)

Parameters

ctx CtxEnable

Returns

ContextEnableDto

GetFeatures(Ctx)

Features provided must be virtual, so that applications can override this.

public IList<FeatureDto> GetFeatures(Ctx flags)

Parameters

flags Ctx

Returns

IList<FeatureDto>

GetLanguage(Ctx)

public ContextLanguageInfoDto? GetLanguage(Ctx flags)

Parameters

flags Ctx

Returns

ContextLanguageInfoDto

GetPage(Ctx)

public WebResourceDto GetPage(Ctx flags)

Parameters

flags Ctx

Returns

WebResourceDto

GetSite(Ctx)

public ContextResourceWithApp? GetSite(Ctx flags)

Parameters

flags Ctx

Returns

ContextResourceWithApp

GetSystem(Ctx)

public ContextResourceWithApp? GetSystem(Ctx flags)

Parameters

flags Ctx

Returns

ContextResourceWithApp

GetUser(Ctx)

public ContextUserDto? GetUser(Ctx flags)

Parameters

flags Ctx

Returns

ContextUserDto

Setup(IAppReader?)

public void Setup(IAppReader? options)

Parameters

options IAppReader