Ejemplo n.º 1
0
        public void Initialize()
        {
            SetDefaultEnvironmentIfNeeded();

            UpdateContexts();

            _attachedScriptsFactory = new AttachedScriptsFactory(this);
            AttachedScriptsFactory.SetInstance(_attachedScriptsFactory);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 4
0
 public void Dispose()
 {
     AttachedScriptsFactory.SetInstance(null);
     GlobalsManager.Reset();
 }
Ejemplo n.º 5
0
 public void Dispose()
 {
     AttachedScriptsFactory.SetInstance(null);
 }