DeviceHistoryOverview Class

Intended for usage on Environment overviews, this component displays a Google Maps overview of the Devices of that environment.

Definition

Namespace: MobileTrack.Web.Portal.Components.Overviews
Assembly: MobileTrack.Web.Portal (in MobileTrack.Web.Portal.exe) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public class DeviceHistoryOverview : ComponentBase, 
	IDisposable, IHasLocalization, IHasCompany, IHasNavigationManager
Inheritance
Object    ComponentBase    DeviceHistoryOverview
Implements
IHasCompany, IHasLocalization, IHasNavigationManager, IDisposable

Remarks

This component can be used in two ways: either to display it to an authenticated user in the portal, or through a JWT token. That is why this component is not derived from MtBaseComponent

Constructors

DeviceHistoryOverviewInitializes a new instance of the DeviceHistoryOverview class

Properties

AuthenticationStateTask Authentication state; certain features are not available unless the user is signed in.
CanLoadMap Whether the map can be loaded at startup. This is used to prevent loading the map and incurring costs if the user is not viewing the map anyway.
CompanyId Represents the CompanyDto owning this object.
Configuration Dependency injection for Azure App Configuration
CosmosDbWrapper Lazy wrapper for the Azure CosmosDB
CurrentDevice The device we are currently viewing
CurrentUser Currently signed-in user.
DeviceMessages The device messages to display on the map.
DeviceMessageSelectedCallback Callback to invoke when a device message is selected on the map.
Dialog Dialog to share environment or device page
GoogleMap Google Map interface
GoogleMapsKeyService Dependency injection for the IBlazorGoogleMapsKeyService to load the Google Maps API with.
KeyVault Key Vault Interop to access the Azure Key Vault.
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.
ScopeId The scope of the map (environments and its sub-environments and devices, or a specific device).
ScopeType Can only be EnvironmentResource or DeviceResource

Methods

BuildRenderTree
(Overrides ComponentBaseBuildRenderTree(RenderTreeBuilder))
DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
InvokeClustering Start adding markers to the map. Google ensures they start clustering.
OnInitializedAsync Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree. Override this method if you will perform an asynchronous operation and want the component to refresh when that operation is completed.
(Overrides ComponentBaseOnInitializedAsync)
OnParametersSet Method invoked when the component has received parameters from its parent in the render tree, and the incoming values have been assigned to properties.
(Overrides ComponentBaseOnParametersSet)

See Also