public RequestRunner(string keyPath) { _keyPath = keyPath; _editorFactory = () => { var locator = new OpenIDE.Core.EditorEngineIntegration.EngineLocator(new OpenIDE.Core.FileSystem.FS()); return(locator.GetInstance(_keyPath)); }; _codemodelFactory = () => { var locator = new OpenIDE.Core.CodeEngineIntegration.CodeEngineDispatcher(new OpenIDE.Core.FileSystem.FS()); return(locator.GetInstance(_keyPath)); }; }
public RequestRunner(string keyPath) { _keyPath = keyPath; _editorFactory = () => { var locator = new OpenIDE.Core.EditorEngineIntegration.EngineLocator(new OpenIDE.Core.FileSystem.FS()); return locator.GetInstance(_keyPath); }; _codemodelFactory = () => { var locator = new OpenIDE.Core.CodeEngineIntegration.CodeEngineDispatcher(new OpenIDE.Core.FileSystem.FS()); return locator.GetInstance(_keyPath); }; }
public ResponseDispatcher(string token, bool dispatchErrors, string eventPrefix, Action<string,string> outputDispatcher, Action<string> dispatcher, Action<string> dispatchResponse) { _token = token; _outputDispatcher = outputDispatcher; _dispatchErrors = dispatchErrors; _eventPrefix = eventPrefix; _dispatcher = dispatcher; _dispatchResponse = dispatchResponse; _requestRunner = new RequestRunner(_token); _editorFactory = () => { if (_editor == null) { var locator = new OpenIDE.Core.EditorEngineIntegration.EngineLocator(new OpenIDE.Core.FileSystem.FS()); _editor = locator.GetInstance(_token); } return _editor; }; }
public ResponseDispatcher(string token, bool dispatchErrors, string eventPrefix, Action <string, string> outputDispatcher, Action <string> dispatcher, Action <string> dispatchResponse) { _token = token; _outputDispatcher = outputDispatcher; _dispatchErrors = dispatchErrors; _eventPrefix = eventPrefix; _dispatcher = dispatcher; _dispatchResponse = dispatchResponse; _requestRunner = new RequestRunner(_token); _editorFactory = () => { if (_editor == null) { var locator = new OpenIDE.Core.EditorEngineIntegration.EngineLocator(new OpenIDE.Core.FileSystem.FS()); _editor = locator.GetInstance(_token); } return(_editor); }; }