Table of Contents

Interface IUiContextPartsService

Namespace
ToSic.Eav.Ui.Context.Sys
Assembly
ToSic.Eav.WebApi.dll

Mini-service to provide the parts of the context.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public interface IUiContextPartsService : IServiceWithSetup<IAppReader?>
Inherited Members

Remarks

Will be called by the IUiContextService to retrieve the parts. Typically, there will be a layered implementation, beginning with the ToSic.Eav.Ui.Context.Sys.EavUiContextPartsService but then there will also be a SxcUiContextPartsService and a DnnUiContextPartsService which will add more information to the context, depending on the platform.

Important: as we want composition over inheritance, we strongly recommend to implement this interface in a new class, and not inherit from the EavUiContextPartsService class.

Methods

GetApp(Ctx)

ContextAppDto? GetApp(Ctx flags)

Parameters

flags Ctx

Returns

ContextAppDto

GetEnable(CtxEnable)

ContextEnableDto GetEnable(CtxEnable ctx)

Parameters

ctx CtxEnable

Returns

ContextEnableDto

GetFeatures(Ctx)

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

IList<FeatureDto> GetFeatures(Ctx flags)

Parameters

flags Ctx

Returns

IList<FeatureDto>

GetLanguage(Ctx)

ContextLanguageInfoDto? GetLanguage(Ctx flags)

Parameters

flags Ctx

Returns

ContextLanguageInfoDto

GetPage(Ctx)

WebResourceDto GetPage(Ctx flags)

Parameters

flags Ctx

Returns

WebResourceDto

GetSite(Ctx)

ContextResourceWithApp? GetSite(Ctx flags)

Parameters

flags Ctx

Returns

ContextResourceWithApp

GetSystem(Ctx)

ContextResourceWithApp? GetSystem(Ctx flags)

Parameters

flags Ctx

Returns

ContextResourceWithApp

GetUser(Ctx)

ContextUserDto? GetUser(Ctx flags)

Parameters

flags Ctx

Returns

ContextUserDto