Example #1
0
        private IRInteractiveWorkflow CreateRInteractiveWorkflow()
        {
            var settings        = RToolsSettings.Current;
            var brokerConnector = new RHostBrokerConnector();
            var workflow        = new RInteractiveWorkflow(_sessionProvider, _connectionsProvider, _historyProvider, _packagesProvider, _plotsProvider, _activeTextViewTracker, _debuggerModeTracker, brokerConnector, _shell, settings, () => DisposeInstance(brokerConnector));

            _disposableBag.Add(workflow);
            return(workflow);
        }
        private IRInteractiveWorkflow CreateRInteractiveWorkflow()
        {
            var sessionProvider = new RSessionProvider(_services, new InteractiveWindowConsole(_shell, _instanceLazy));
            var workflow        = new RInteractiveWorkflow(sessionProvider, _connectionsProvider, _historyProvider, _packagesProvider,
                                                           _plotsProvider, _activeTextViewTracker, _debuggerModeTracker,
                                                           _shell, _settings, _wss, () => DisposeInstance(sessionProvider));

            _disposableBag.Add(workflow);

            sessionProvider.BrokerChanging += OnBrokerChanging;
            return(workflow);
        }