public void Clear() { (_jsEngine as IDisposable)?.Dispose(); _jsEngine = _getJsScriptExecutor(); }
public ScriptExecutor(Func <IJsScriptExecutor> getJsScriptExecutor) { _getJsScriptExecutor = getJsScriptExecutor; _jsEngine = getJsScriptExecutor(); }