public void Dispose() { JS.Destroy(JSRuntime, ElementId); JS.DisposeDotNetObjectRef(dotNetObjectRef); }
private async Task Initialize() { dotNetObjectRef = dotNetObjectRef ?? JS.CreateDotNetObjectRef(new ChartAdapter(this)); await JS.InitializeChart(JSRuntime, dotNetObjectRef, Clicked.HasDelegate, Hovered.HasDelegate, ElementId, Type, Data, Options, DataJsonString, OptionsJsonString); }