Beispiel #1
0
 public EventEndpoint(string keyPath, PluginLocator locator)
 {
     _keyPath = keyPath;
     _server = new TcpServer();
     _server.IncomingMessage += Handle_serverIncomingMessage;
     _server.Start();
     _reactiveEngine = new ReactiveScriptEngine(_keyPath, locator);
 }
 public EventEndpoint(string keyPath, PluginLocator locator, OpenIDE.CodeEngine.Core.Endpoints.OutputEndpoint outputEndpoint)
 {
     _keyPath = keyPath;
     _outputEndpoint = outputEndpoint;
     _server = new TcpServer();
     _server.IncomingMessage += Handle_serverIncomingMessage;
     _server.Start();
     _reactiveEngine = new ReactiveScriptEngine(_keyPath, locator, (publisher, msg) => _outputEndpoint.Send(publisher, msg), dispatch);
 }