Example #1
0
        private void details(string key)
        {
            var instance = _locator.GetInstances().FirstOrDefault(x => matchPath(key, x.Key));

            if (instance == null)
            {
                return;
            }
            _dispatch("Key:    " + instance.Key);
            _dispatch(string.Format("Engine: Pid {0} @ 127.0.0.1:{1}", instance.ProcessID, instance.Port));
            var events = new OpenIDE.Core.EventEndpointIntegrarion.EventClient(key).GetInstance();

            if (events != null)
            {
                _dispatch(string.Format("Events: Pid {0} @ 127.0.0.1:{1}", events.ProcessID, events.Port));
            }
            var output = new OpenIDE.Core.OutputEndpointIntegration.OutputClient(key).GetInstance();

            if (output != null)
            {
                _dispatch(string.Format("Output: Pid {0} @ 127.0.0.1:{1}", output.ProcessID, output.Port));
            }
            var editor
                = _editorLocator.GetInstances()
                  .FirstOrDefault(x => x.Key == instance.Key);

            if (editor == null)
            {
                _dispatch("Editor: Not running");
                return;
            }
            _dispatch(string.Format("Editor: Pid {0} @ 127.0.0.1:{1}", editor.ProcessID, editor.Port));
        }
 private void details(string key)
 {
     var instance = _locator.GetInstances().FirstOrDefault(x => matchPath(key, x.Key));
     if (instance == null)
         return;
     _dispatch("Token:  " + instance.Key);
     _dispatch(string.Format("Engine: Pid {0} @ 127.0.0.1:{1}", instance.ProcessID, instance.Port));
     var events = new OpenIDE.Core.EventEndpointIntegrarion.EventClient(key).GetInstance();
     if (events != null) {
         _dispatch(string.Format("Events: Pid {0} @ 127.0.0.1:{1}", events.ProcessID, events.Port));
     }
     var output = new OpenIDE.Core.OutputEndpointIntegration.OutputClient(key).GetInstance();
     if (output != null) {
         _dispatch(string.Format("Output: Pid {0} @ 127.0.0.1:{1}", output.ProcessID, output.Port));
     }
     var editor
         = _editorLocator.GetInstances()
             .FirstOrDefault(x => x.Key == instance.Key);
     if (editor == null) {
         _dispatch("Editor: Not running");
         return;
     }
     _dispatch(string.Format("Editor: Pid {0} @ 127.0.0.1:{1}", editor.ProcessID, editor.Port));
 }