public CommandsHost(IDebugServices debugServices, ClrRuntime runtime) { DebugServices = debugServices; Runtime = runtime; ExternalCommandNames = new ExternalCommandNameProvider(); Commands = new CommandsLocator(); _commandsFactory = new CommandsFactory(this); AddCommands(); }
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(); }); }