示例#1
0
 public WorkloadManifestUpdater(IReporter reporter,
                                IWorkloadResolver workloadResolver,
                                INuGetPackageDownloader nugetPackageDownloader,
                                string userProfileDir,
                                string tempDirPath,
                                IWorkloadInstallationRecordRepository workloadRecordRepo,
                                PackageSourceLocation packageSourceLocation  = null,
                                Func <string, string> getEnvironmentVariable = null)
 {
     _reporter               = reporter;
     _workloadResolver       = workloadResolver;
     _userProfileDir         = userProfileDir;
     _tempDirPath            = tempDirPath;
     _nugetPackageDownloader = nugetPackageDownloader;
     _sdkFeatureBand         = new SdkFeatureBand(_workloadResolver.GetSdkFeatureBand());
     _packageSourceLocation  = packageSourceLocation;
     _getEnvironmentVariable = getEnvironmentVariable ?? Environment.GetEnvironmentVariable;
     _workloadRecordRepo     = workloadRecordRepo;
 }