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); }; }