public void Dispose() { JavaScriptContext.Current = JavaScriptContext.Invalid; context = JavaScriptContext.Invalid; runtime.Dispose(); Port.Util.ClearCache(); }
public override void Cleanup() { engine_.Dispose(); engine_ = null; runtime_.Dispose(); runtime_ = null; }
void OnDestroy() { StopFileWatcher(); Bridge.Stop(); runtime.Dispose(); instance = null; }
/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged /// resources. /// </summary> public void Dispose() { GC.SuppressFinalize(this); if (_initialized) { _engine.Dispose(); _initialized = false; } }
public async Task Cleanup() { await DispatchContainer.GlobalDispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { engine_.Dispose(); engine_ = null; runtime_.Dispose(); runtime_ = null; }); }
public void Dispose() { if (_isDisposing == false) { _jsRuntime.Dispose(); _isDisposing = true; } return; }
public override void Cleanup() { dataView_ = null; typedArray_ = null; buffer_ = null; engine_.Dispose(); engine_ = null; runtime_.Dispose(); runtime_ = null; }
public void Dispose() { if (context.IsValid) { context.Release(); } if (runtime.IsValid) { runtime.Dispose(); } }
public void Dispose() { if (!IsValid) { return; } try { if (_context.IsValid && JavaScriptContext.HasException) { JavaScriptContext.GetAndClearException(); } _scope.Dispose(); _runtime.Dispose(); } catch (Exception) { // eat all } }
/// <summary> /// Disposes the <see cref="ChakraJavaScriptExecutor"/> instance. /// </summary> public void Dispose() { JavaScriptContext.Current = JavaScriptContext.Invalid; _runtime.Dispose(); }
public void Dispose() { _runtime.Dispose(); }