public void Dispose() { // make sure to unregister listener if (isRegistered) { isRegistered = false; JSRunner.UnregisterClosableComponent(this); } }
protected override void Dispose(bool disposing) { if (disposing && Rendered) { // TODO: switch to IAsyncDisposable _ = JSRunner.UnregisterClosableComponent(this); JSRunner.DisposeDotNetObjectRef(dotNetObjectRef); } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (disposing) { // make sure to unregister listener if (isRegistered) { isRegistered = false; JSRunner.UnregisterClosableComponent(this); } } base.Dispose(disposing); }
private async Task Collapse() { await JSRunner.UnregisterClosableComponent(this); Expanded = false; }