HelpLayout Class

Default layout for MobileTrack support users All pages for normal users are wrapped in this layout.

Definition

Namespace: MobileTrack.Web.Portal.Pages.Admin.Helps
Assembly: MobileTrack.Web.Portal (in MobileTrack.Web.Portal.exe) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
public class HelpLayout : LayoutComponentBase, IHasNavigationManager, 
	IHasLocalization
Inheritance
Object    ComponentBase    LayoutComponentBase    HelpLayout
Implements
IHasLocalization, IHasNavigationManager

Constructors

HelpLayoutInitializes a new instance of the HelpLayout class

Properties

CancellationToken Cancellation token for the component; this can be used for asynchronous operations on the components, to shut them down if the component has ended its lifetime.
CosmosDb Dependency injected Azure Cosmos Database
CurrentUser Container for the current user, their role and the company/environment they're working on.
HttpContextAccessor Dependency injected HttpContext for the current user.
Language Language code. E.g. en, nl, de
Loc Dependency injection for the localization tool. It derives texts established in CosmosDB's "LocalizedStrings" container. It can be used by invoking it as an array, with the key of the text you want to get. Parameters for the string can be added in the array as well, similar to Format(String, Object).
If the text is not found, it will return the key itself as fallback.

The language the key will be localized based on is based on the CurrentCulture and the CurrentUICulture.
If you want to localize something in a different language, you will have to apply the culture on the CultureInfo properties, get the text,
and revert back to the original culture.
NavigationManager Dependency injected NavigationManager for navigating to different pages.
Note: in Blazor, navigation is done in a 'fake' manner so the entire page doesn't need to be reloaded.
If you want to make sure the page is reloaded, or if we're going somewhere outside the Blazor context,
ensure you set the parameter 'forceLoad' in method NavigateTo(String, Boolean, Boolean) to true.
PreloadService Dependency injected PreloadService for showing and hiding the preload spinner
ToastService Toast messages service

Methods

BuildRenderTree
(Overrides ComponentBaseBuildRenderTree(RenderTreeBuilder))
OnAfterRenderAsync Method invoked after each time the component has been rendered interactively and the UI has finished updating (for example, after elements have been added to the browser DOM). Any ElementReference fields will be populated by the time this runs. This method is not invoked during prerendering or server-side rendering, because those processes are not attached to any live browser DOM and are already complete before the DOM is updated. Note that the component does not automatically re-render after the completion of any returned Task, because that would cause an infinite render loop.
(Overrides ComponentBaseOnAfterRenderAsync(Boolean))
OnInitialized Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.
(Overrides ComponentBaseOnInitialized)

See Also