MobileTrack.Web.Components.Extensions Namespace

Similar to MobileTrack.Common.Extensions, these extensions are for often reused methods on web pages and in the API. They are however now based on Razor component settings, image handling, HttpContext data retrieval/setting, cookie handling and other methods that are only handled in the web environments.

Classes

DeviceRequestTypeIconExtensions Contains extension methods for mapping DeviceRequestType to IconName.
DiagramsFactory Factory to generate objects for diagrams.
FourEyesExtensions Extension methods for four-eyes logic.
IconBindings When we're using IconName icons in the web components, it's important we use the same icons for the same types of resources.
We use this class as a lookup table for the icons we use in the web components. We do not use '''' icons anymore,
As not all icons that we need have a '' alternative. (For example, for files or folders)
ImageExtensions WebExtensions for image functions
LogFactory Log factory to parse logs into a readable form.
LoggerExtensions Pre-compiled ILoggerTCategoryName logging lines that are specific for the Portal or API.
MapsExtensions Extensions when working with Map Services.
NavigationExtensions Extensions for the NavigationManager class, to make it easier to navigate to specific pages.
SvgGenerator Generates SVG images.
UrlChecker This class exists to allow us to generate proper URL's for the NavigationManager when moving from page to page.
It also allows us to check if a specific url matches a specific page.
WebExtensions WebExtensions to use for JS/HTML run times