コード例 #1
0
        internal static async ValueTask <PackageSolutionDetailControlModel> CreateAsync(
            INuGetSolutionManagerService solutionManager,
            IEnumerable <IProjectContextInfo> projects,
            IServiceBroker serviceBroker,
            CancellationToken cancellationToken)
        {
            var packageSolutionDetailControlModel = new PackageSolutionDetailControlModel(serviceBroker, projects);
            await packageSolutionDetailControlModel.InitializeAsync(solutionManager, cancellationToken);

            return(packageSolutionDetailControlModel);
        }
コード例 #2
0
        public static async ValueTask <PackageSolutionDetailControlModel> CreateAsync(
            INuGetSolutionManagerService solutionManager,
            IEnumerable <IProjectContextInfo> projects,
            IEnumerable <IVsPackageManagerProvider> packageManagerProviders,
            CancellationToken cancellationToken)
        {
            var packageSolutionDetailControlModel = new PackageSolutionDetailControlModel(projects);
            await packageSolutionDetailControlModel.InitializeAsync(solutionManager, packageManagerProviders, serviceBroker : null, cancellationToken);

            return(packageSolutionDetailControlModel);
        }