OpenIDE.CodeEngine.Core.ReactiveScripts.ReactiveScriptEngine.ReactiveScriptEngine C# (CSharp) Method

ReactiveScriptEngine() public method

public ReactiveScriptEngine ( string path, PluginLocator locator, string>.Action outputDispatcher, Action dispatch ) : System
path string
locator OpenIDE.Core.Language.PluginLocator
outputDispatcher string>.Action
dispatch Action
return System
        public ReactiveScriptEngine(string path, PluginLocator locator, Action<string,string> outputDispatcher, Action<string> dispatch)
        {
            _keyPath = path;
            _outputDispatcher = outputDispatcher;
            _dispatch = dispatch;
            _pausedScripts = new List<string>();
            _reader =
                new ReactiveScriptReader(
                    _keyPath,
                    () => { return locator; },
                    _outputDispatcher,
                    (m) => _dispatch(m));
            _touchHandler = new ScriptTouchHandler(_reader.GetPaths());
            _scripts = _reader.Read();
            foreach (var script in _scripts) {
                if (script.IsService)
                    script.StartService();
            }
        }