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