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
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

Properties

LogicComponent.OnJavascriptErrorHandler Property

Implement this handler in your calling code to catch and handle Javascript errors.

public System.Func<dymaptic.GeoBlazor.Core.Exceptions.JavascriptException,System.Threading.Tasks.Task>? OnJavascriptErrorHandler { get; set; }

Property Value

System.Func<JavascriptException,System.Threading.Tasks.Task>

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.