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 static void Dispose() { _instance = null; }
internal static void SetInstance(AttachedScriptsFactory factory) { _instance = factory; }