Skip to main content Link Menu Expand (external link) Document Search Copy Copied

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

Inheritance System.Object 🡒 LogicComponent

Derived
GeometryEngine
Projection

Constructors

LogicComponent(IJSRuntime, IConfiguration) Constructor

Default constructor

public LogicComponent(Microsoft.JSInterop.IJSRuntime jsRuntime, Microsoft.Extensions.Configuration.IConfiguration configuration);

Parameters

jsRuntime Microsoft.JSInterop.IJSRuntime

Injected JavaScript Runtime reference

configuration Microsoft.Extensions.Configuration.IConfiguration

Injected configuration object

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