public WorkspaceProjectContextHostInstance(ConfiguredProject project,
                                            IProjectThreadingService threadingService,
                                            IUnconfiguredProjectTasksService tasksService,
                                            IProjectSubscriptionService projectSubscriptionService,
                                            IWorkspaceProjectContextProvider workspaceProjectContextProvider,
                                            IActiveEditorContextTracker activeWorkspaceProjectContextTracker,
                                            ExportFactory <IApplyChangesToWorkspaceContext> applyChangesToWorkspaceContextFactory)
     : base(threadingService.JoinableTaskContext)
 {
     _project = project;
     _projectSubscriptionService = projectSubscriptionService;
     _tasksService = tasksService;
     _workspaceProjectContextProvider       = workspaceProjectContextProvider;
     _applyChangesToWorkspaceContextFactory = applyChangesToWorkspaceContextFactory;
     _activeWorkspaceProjectContextTracker  = activeWorkspaceProjectContextTracker;
 }
 public WorkspaceProjectContextHost(ConfiguredProject project,
                                    IProjectThreadingService threadingService,
                                    IUnconfiguredProjectTasksService tasksService,
                                    IProjectSubscriptionService projectSubscriptionService,
                                    IWorkspaceProjectContextProvider workspaceProjectContextProvider,
                                    IActiveEditorContextTracker activeWorkspaceProjectContextTracker,
                                    IActiveConfiguredProjectProvider activeConfiguredProjectProvider,
                                    ExportFactory <IApplyChangesToWorkspaceContext> applyChangesToWorkspaceContextFactory,
                                    IDataProgressTrackerService dataProgressTrackerService,
                                    ICommandLineArgumentsProvider commandLineArgumentsProvider)
     : base(threadingService.JoinableTaskContext)
 {
     _project                               = project;
     _threadingService                      = threadingService;
     _tasksService                          = tasksService;
     _projectSubscriptionService            = projectSubscriptionService;
     _workspaceProjectContextProvider       = workspaceProjectContextProvider;
     _activeWorkspaceProjectContextTracker  = activeWorkspaceProjectContextTracker;
     _activeConfiguredProjectProvider       = activeConfiguredProjectProvider;
     _applyChangesToWorkspaceContextFactory = applyChangesToWorkspaceContextFactory;
     _dataProgressTrackerService            = dataProgressTrackerService;
     _commandLineArgumentsProvider          = commandLineArgumentsProvider;
 }
Пример #3
0
 public WorkspaceProjectContextHostInstance(ConfiguredProject project,
                                            IProjectThreadingService threadingService,
                                            IUnconfiguredProjectTasksService tasksService,
                                            IProjectSubscriptionService projectSubscriptionService,
                                            IWorkspaceProjectContextProvider workspaceProjectContextProvider,
                                            IActiveEditorContextTracker activeWorkspaceProjectContextTracker,
                                            IActiveConfiguredProjectProvider activeConfiguredProjectProvider,
                                            ExportFactory <IApplyChangesToWorkspaceContext> applyChangesToWorkspaceContextFactory,
                                            IDataProgressTrackerService dataProgressTrackerService,
                                            IConfiguredProjectLanguageServiceTelemetryService languageServiceTelemetryService,
                                            long workspaceContextId)
     : base(threadingService.JoinableTaskContext)
 {
     _project = project;
     _projectSubscriptionService = projectSubscriptionService;
     _tasksService = tasksService;
     _workspaceProjectContextProvider       = workspaceProjectContextProvider;
     _activeWorkspaceProjectContextTracker  = activeWorkspaceProjectContextTracker;
     _activeConfiguredProjectProvider       = activeConfiguredProjectProvider;
     _applyChangesToWorkspaceContextFactory = applyChangesToWorkspaceContextFactory;
     _dataProgressTrackerService            = dataProgressTrackerService;
     _languageServiceTelemetryService       = languageServiceTelemetryService;
     _workspaceContextId = workspaceContextId;
 }
Пример #4
0
        private WorkspaceProjectContextHostInstance CreateInstance(ConfiguredProject project = null, IProjectThreadingService threadingService = null, IUnconfiguredProjectTasksService tasksService = null, IProjectSubscriptionService projectSubscriptionService = null, IActiveEditorContextTracker activeWorkspaceProjectContextTracker = null, IWorkspaceProjectContextProvider workspaceProjectContextProvider = null, IApplyChangesToWorkspaceContext applyChangesToWorkspaceContext = null)
        {
            project                              = project ?? ConfiguredProjectFactory.Create();
            threadingService                     = threadingService ?? IProjectThreadingServiceFactory.Create();
            tasksService                         = tasksService ?? IUnconfiguredProjectTasksServiceFactory.Create();
            projectSubscriptionService           = projectSubscriptionService ?? IProjectSubscriptionServiceFactory.Create();
            activeWorkspaceProjectContextTracker = activeWorkspaceProjectContextTracker ?? IActiveEditorContextTrackerFactory.Create();
            workspaceProjectContextProvider      = workspaceProjectContextProvider ?? IWorkspaceProjectContextProviderFactory.ImplementCreateProjectContextAsync(IWorkspaceProjectContextAccessorFactory.Create());
            applyChangesToWorkspaceContext       = applyChangesToWorkspaceContext ?? IApplyChangesToWorkspaceContextFactory.Create();

            return(new WorkspaceProjectContextHostInstance(project,
                                                           threadingService,
                                                           tasksService,
                                                           projectSubscriptionService,
                                                           workspaceProjectContextProvider,
                                                           activeWorkspaceProjectContextTracker,
                                                           ExportFactoryFactory.ImplementCreateValueWithAutoDispose(() => applyChangesToWorkspaceContext)));
        }
Пример #5
0
        private async Task <WorkspaceProjectContextHostInstance> CreateInitializedInstanceAsync(ConfiguredProject project = null, IProjectThreadingService threadingService = null, IUnconfiguredProjectTasksService tasksService = null, IProjectSubscriptionService projectSubscriptionService = null, IActiveEditorContextTracker activeWorkspaceProjectContextTracker = null, IWorkspaceProjectContextProvider workspaceProjectContextProvider = null, IApplyChangesToWorkspaceContext applyChangesToWorkspaceContext = null)
        {
            var instance = CreateInstance(project, threadingService, tasksService, projectSubscriptionService, activeWorkspaceProjectContextTracker, workspaceProjectContextProvider, applyChangesToWorkspaceContext);

            await instance.InitializeAsync();

            return(instance);
        }