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