Пример #1
0
        internal VSSolutionManager(
            IAsyncServiceProvider asyncServiceProvider,
            IProjectSystemCache projectSystemCache,
            NuGetProjectFactory projectSystemFactory,
            ICredentialServiceProvider credentialServiceProvider,
            IVsProjectAdapterProvider vsProjectAdapterProvider,
            ILogger logger,
            Lazy <ISettings> settings,
            INuGetFeatureFlagService featureFlagService,
            JoinableTaskContext joinableTaskContext)
        {
            Assumes.Present(asyncServiceProvider);
            Assumes.Present(projectSystemCache);
            Assumes.Present(projectSystemFactory);
            Assumes.Present(credentialServiceProvider);
            Assumes.Present(vsProjectAdapterProvider);
            Assumes.Present(logger);
            Assumes.Present(settings);
            Assumes.Present(featureFlagService);
            Assumes.Present(joinableTaskContext);

            _asyncServiceProvider      = asyncServiceProvider;
            _projectSystemCache        = projectSystemCache;
            _projectSystemFactory      = projectSystemFactory;
            _credentialServiceProvider = credentialServiceProvider;
            _vsProjectAdapterProvider  = vsProjectAdapterProvider;
            _logger             = logger;
            _settings           = settings;
            _featureFlagService = featureFlagService;
            _initLock           = new NuGetLockService(joinableTaskContext);
            _dte             = new(() => asyncServiceProvider.GetDTEAsync(), NuGetUIThreadHelper.JoinableTaskFactory);
            _asyncVSSolution = new(() => asyncServiceProvider.GetServiceAsync <SVsSolution, IVsSolution>(), NuGetUIThreadHelper.JoinableTaskFactory);
        }
Пример #2
0
 internal VSSolutionManager(
     IProjectSystemCache projectSystemCache,
     NuGetProjectFactory projectSystemFactory,
     ICredentialServiceProvider credentialServiceProvider,
     IVsProjectAdapterProvider vsProjectAdapterProvider,
     [Import("VisualStudioActivityLogger")]
     Common.ILogger logger,
     Lazy <ISettings> settings,
     INuGetFeatureFlagService featureFlagService,
     JoinableTaskContext joinableTaskContext)
     : this(AsyncServiceProvider.GlobalProvider,
            projectSystemCache,
            projectSystemFactory,
            credentialServiceProvider,
            vsProjectAdapterProvider,
            logger,
            settings,
            featureFlagService,
            joinableTaskContext)
 {
 }