public WorkloadManifestUpdater(
     IReporter reporter,
     IWorkloadManifestProvider workloadManifestProvider,
     INuGetPackageDownloader nugetPackageDownloader,
     string userHome)
 {
     _reporter = reporter;
     _workloadManifestProvider = workloadManifestProvider;
     _userHome = userHome;
     _nugetPackageDownloader = nugetPackageDownloader;
     _sdkFeatureBand         = new SdkFeatureBand(_workloadManifestProvider.GetSdkFeatureBand());
 }
Exemple #2
0
 public WorkloadManifestUpdater(
     IReporter reporter,
     IWorkloadManifestProvider workloadManifestProvider,
     INuGetPackageDownloader nugetPackageDownloader,
     string userHome,
     string tempDirPath,
     PackageSourceLocation packageSourceLocation = null)
 {
     _reporter = reporter;
     _workloadManifestProvider = workloadManifestProvider;
     _userHome               = userHome;
     _tempDirPath            = tempDirPath;
     _nugetPackageDownloader = nugetPackageDownloader;
     _sdkFeatureBand         = new SdkFeatureBand(_workloadManifestProvider.GetSdkFeatureBand());
     _packageSourceLocation  = packageSourceLocation;
 }
Exemple #3
0
 public WorkloadManifestUpdater(IReporter reporter,
                                IWorkloadManifestProvider workloadManifestProvider,
                                IWorkloadResolver workloadResolver,
                                INuGetPackageDownloader nugetPackageDownloader,
                                string userHome,
                                string tempDirPath,
                                PackageSourceLocation packageSourceLocation  = null,
                                Func <string, string> getEnvironmentVariable = null)
 {
     _reporter = reporter;
     _workloadManifestProvider = workloadManifestProvider;
     _workloadResolver         = workloadResolver;
     _userHome               = userHome;
     _tempDirPath            = tempDirPath;
     _nugetPackageDownloader = nugetPackageDownloader;
     _sdkFeatureBand         = new SdkFeatureBand(_workloadManifestProvider.GetSdkFeatureBand());
     _packageSourceLocation  = packageSourceLocation;
     _getEnvironmentVariable = getEnvironmentVariable ?? Environment.GetEnvironmentVariable;
 }