Inheritance: IDisposable
Ejemplo n.º 1
0
 public OutputEndpoint(string token)
 {
     _token = token;
     _server = new TcpServer();
     _server.Start();
     writeInstanceInfo();
 }
Ejemplo n.º 2
0
 public EventEndpoint(string keyPath, PluginLocator locator)
 {
     _keyPath = keyPath;
     _server = new TcpServer();
     _server.IncomingMessage += Handle_serverIncomingMessage;
     _server.Start();
     _reactiveEngine = new ReactiveScriptEngine(_keyPath, locator);
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
 public CommandEndpoint(string editorKey, ITypeCache cache, EventEndpoint eventEndpoint)
 {
     _keyPath = editorKey;
     _cache = cache;
     _eventEndpoint = eventEndpoint;
     _server = new TcpServer();
     _server.IncomingMessage += Handle_serverIncomingMessage;
     _server.Start();
     _editor = new Editor();
     _editor.RecievedMessage += Handle_editorRecievedMessage;
     _editor.Connect(_keyPath);
 }
Ejemplo n.º 5
0
 public CommandEndpoint(string editorKey, ITypeCache cache, EventEndpoint eventEndpoint)
 {
     Logger.Write("Initializing command endpoint using editor key " + editorKey);
     _keyPath = editorKey;
     _cache = cache;
     Logger.Write("Setting up event endpoint");
     _eventEndpoint = eventEndpoint;
     _eventEndpoint.DispatchThrough((m) => {
             handle(new MessageArgs(Guid.Empty, m));
         });
     _server = new TcpServer();
     _server.IncomingMessage += Handle_serverIncomingMessage;
     _server.Start();
     Logger.Write("CodeEngine started listening on port {0}", _server.Port);
     _editor = new Editor();
     Logger.Write("Binding editor RecievedMessage");
     _editor.RecievedMessage += Handle_editorRecievedMessage;
     Logger.Write("Connecting to editor");
     _editor.Connect(_keyPath);
     Logger.Write("Done - Connecting to editor");
 }