Class SxcUiContextPartsService
[InternalApi_DoNotUse_MayChangeWithoutNotice]
public sealed class SxcUiContextPartsService : ServiceBase, IHasLog, IUiContextPartsService, IServiceWithSetup<IAppReader?>
- Inheritance
-
objectSxcUiContextPartsService
- 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
flagsCtx
Returns
- ContextAppDto
GetEnable(CtxEnable)
public ContextEnableDto GetEnable(CtxEnable ctx)
Parameters
ctxCtxEnable
Returns
- ContextEnableDto
GetFeatures(Ctx)
Features provided must be virtual, so that applications can override this.
public IList<FeatureDto> GetFeatures(Ctx flags)
Parameters
flagsCtx
Returns
- IList<FeatureDto>
GetLanguage(Ctx)
public ContextLanguageInfoDto? GetLanguage(Ctx flags)
Parameters
flagsCtx
Returns
- ContextLanguageInfoDto
GetPage(Ctx)
public WebResourceDto GetPage(Ctx flags)
Parameters
flagsCtx
Returns
- WebResourceDto
GetSite(Ctx)
public ContextResourceWithApp? GetSite(Ctx flags)
Parameters
flagsCtx
Returns
- ContextResourceWithApp
GetSystem(Ctx)
public ContextResourceWithApp? GetSystem(Ctx flags)
Parameters
flagsCtx
Returns
- ContextResourceWithApp
GetUser(Ctx)
public ContextUserDto? GetUser(Ctx flags)
Parameters
flagsCtx
Returns
- ContextUserDto
Setup(IAppReader?)
public void Setup(IAppReader? options)
Parameters
optionsIAppReader