layout: default title: LogicComponent parent: Core Classes —

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Model

LogicComponent Class

A base class for non-map components, such as GeometryEngine, Projection, etc.

public abstract class LogicComponent :
System.IDisposable

Inheritance System.Object 🡒 LogicComponent

Derived
GeometryEngine
Locator
Projection

Implements System.IDisposable

Constructors

LogicComponent(IJSRuntime, AuthenticationManager) Constructor

Default constructor

public LogicComponent(Microsoft.JSInterop.IJSRuntime jsRuntime, dymaptic.GeoBlazor.Core.Model.AuthenticationManager authenticationManager);

Parameters

jsRuntime Microsoft.JSInterop.IJSRuntime

Injected JavaScript Runtime reference

authenticationManager AuthenticationManager

Injected Identity Manager reference

Methods

LogicComponent.Dispose() Method

Disposes of the Logic Component and cancels all external calls

public void Dispose();

Implements Dispose()

LogicComponent.Initialize() Method

Initializes the JavaScript reference component, if not already initialized.

public virtual System.Threading.Tasks.Task Initialize();

Returns

System.Threading.Tasks.Task

LogicComponent.OnJavascriptError(JavascriptError) Method

A JavaScript invokable method that returns a JS Error and converts it to an Exception.

public void OnJavascriptError(dymaptic.GeoBlazor.Core.Exceptions.JavascriptError error);

Parameters

error JavascriptError

The original JavaScript error.

Exceptions

JavascriptException
The converted error to exception.