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); }
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); }