Interface IUiContextPartsService
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
flagsCtx
Returns
- ContextAppDto
GetEnable(CtxEnable)
ContextEnableDto GetEnable(CtxEnable ctx)
Parameters
ctxCtxEnable
Returns
- ContextEnableDto
GetFeatures(Ctx)
Features provided must be virtual, so that applications can override this.
IList<FeatureDto> GetFeatures(Ctx flags)
Parameters
flagsCtx
Returns
- IList<FeatureDto>
GetLanguage(Ctx)
ContextLanguageInfoDto? GetLanguage(Ctx flags)
Parameters
flagsCtx
Returns
- ContextLanguageInfoDto
GetPage(Ctx)
WebResourceDto GetPage(Ctx flags)
Parameters
flagsCtx
Returns
- WebResourceDto
GetSite(Ctx)
ContextResourceWithApp? GetSite(Ctx flags)
Parameters
flagsCtx
Returns
- ContextResourceWithApp
GetSystem(Ctx)
ContextResourceWithApp? GetSystem(Ctx flags)
Parameters
flagsCtx
Returns
- ContextResourceWithApp
GetUser(Ctx)
ContextUserDto? GetUser(Ctx flags)
Parameters
flagsCtx
Returns
- ContextUserDto