public void Initialize() { SetDefaultEnvironmentIfNeeded(); UpdateContexts(); _attachedScriptsFactory = new AttachedScriptsFactory(this); AttachedScriptsFactory.SetInstance(_attachedScriptsFactory); }
public void Initialize(RuntimeEnvironment environment) { _symbolsContext = environment.SymbolsContext; foreach (var item in environment.AttachedContexts) { _machine.AttachContext(item, false); } _attachedScriptsFactory = new AttachedScriptsFactory(this); AttachedScriptsFactory.SetInstance(_attachedScriptsFactory); }
public void Initialize() { SetDefaultEnvironmentIfNeeded(); var symbolsContext = Environment.SymbolsContext; _machine.Cleanup(); foreach (var item in Environment.AttachedContexts) { _machine.AttachContext(item, false); } _attachedScriptsFactory = new AttachedScriptsFactory(this); AttachedScriptsFactory.SetInstance(_attachedScriptsFactory); }
public void Dispose() { AttachedScriptsFactory.SetInstance(null); GlobalsManager.Reset(); }
public void Dispose() { AttachedScriptsFactory.SetInstance(null); }