public void UpdateContexts() { _machine.Cleanup(); foreach (var item in Environment.AttachedContexts) { _machine.AttachContext(item, false); } }
public void LoadMemory(MachineInstance machine) { machine.Cleanup(); foreach (var item in AttachedContexts) { machine.AttachContext(item); } machine.ContextsAttached(); }
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); }