Пример #1
0
        public CommandsHost(IDebugServices debugServices, ClrRuntime runtime)
        {
            DebugServices = debugServices;
            Runtime       = runtime;

            ExternalCommandNames = new ExternalCommandNameProvider();
            Commands             = new CommandsLocator();

            _commandsFactory = new CommandsFactory(this);
            AddCommands();
        }
Пример #2
0
        private void connect()
        {
            waitUntilReady(() =>
            {
                if (svcDebug != null)
                {
                    try { ((IDisposable)svcDebug).Dispose(); }
                    catch (CommunicationException) { }
                    catch (TimeoutException) { }
                }

                svcDebug = ChannelFactory <IDebugServices> .CreateChannel(debugBinding, new EndpointAddress(servicesDebugURL));
                svcDebug.ping();
            });
        }