protected override async Task InitializeCoreAsync(CancellationToken cancellationToken) { _projectGuid = await _project.UnconfiguredProject.GetProjectGuidAsync(); _missingSetupComponentRegistrationService.RegisterProjectConfiguration(_projectGuid, _project); _ = RegisterSdkRuntimeNeededInProjectAsync(_project); }
protected override async Task InitializeCoreAsync(CancellationToken cancellationToken) { _projectGuid = await _project.UnconfiguredProject.GetProjectGuidAsync(); _joinedDataSources = ProjectDataSources.JoinUpstreamDataSources(JoinableFactory, _projectFaultHandlerService, _projectSubscriptionService.ProjectSource, _workloadDescriptorDataSource); _missingSetupComponentRegistrationService.RegisterProjectConfiguration(_projectGuid, _project); Action <IProjectVersionedValue <ValueTuple <IProjectSnapshot, ISet <WorkloadDescriptor> > > > action = OnWorkloadDescriptorsComputed; _subscription = ProjectDataSources.SyncLinkTo( _projectSubscriptionService.ProjectSource.SourceBlock.SyncLinkOptions(), _workloadDescriptorDataSource.SourceBlock.SyncLinkOptions(), DataflowBlockFactory.CreateActionBlock(action, _project.UnconfiguredProject, ProjectFaultSeverity.LimitedFunctionality), linkOptions: DataflowOption.PropagateCompletion, cancellationToken: cancellationToken); }