/// <summary> /// Releases resources used by this engine. /// </summary> public override void Dispose() { if (!_disposed) { _context.Dispose(); _disposed = true; } }
public void Dispose() { if (_jsContext != null) { _jsContext.Dispose(); _jsContext = null; } if (_jsEngine != null) { _jsEngine.Dispose(); _jsEngine = null; } if (_singleton != null) { _singleton = null; } }