1 instantiation of EnvironmentVariableWrapper
NuGet.Common (1)
EnvironmentVariableWrapper.cs (1)
11
public static IEnvironmentVariableReader Instance { get; } = new
EnvironmentVariableWrapper
();
71 references to EnvironmentVariableWrapper
Microsoft.Build.NuGetSdkResolver (1)
NuGetSdkResolver.cs (1)
47
: this(GlobalJsonReader.Instance,
EnvironmentVariableWrapper
.Instance)
NuGet.Build.Tasks (6)
BuildTasksUtility.cs (1)
775
return GetFilesToEmbedInBinlogValue(value,
EnvironmentVariableWrapper
.Instance);
GenerateRestoreGraphFileTask.cs (1)
19
: this(
EnvironmentVariableWrapper
.Instance)
GetRestoreSettingsTask.cs (1)
26
: this(
EnvironmentVariableWrapper
.Instance)
RestoreTask.cs (1)
31
: this(
EnvironmentVariableWrapper
.Instance)
RestoreTaskEx.cs (1)
18
: this(
EnvironmentVariableWrapper
.Instance)
WriteRestoreGraphTask.cs (1)
25
: this(
EnvironmentVariableWrapper
.Instance)
NuGet.Build.Tasks.Console (4)
MSBuildStaticGraphRestore.cs (3)
68
_environment = environment ??
EnvironmentVariableWrapper
.Instance;
108
var dependencyGraphSpec = GetDependencyGraphSpec(entryProjectFilePath, globalProperties, interactive, binaryLoggerParameters,
EnvironmentVariableWrapper
.Instance);
194
var dependencyGraphSpec = GetDependencyGraphSpec(entryProjectFilePath, globalProperties, interactive, binaryLoggerParameters,
EnvironmentVariableWrapper
.Instance);
Program.cs (1)
43
return await MainInternal(args,
EnvironmentVariableWrapper
.Instance);
NuGet.Build.Tasks.Pack (1)
PackTask.cs (1)
24
: this(
EnvironmentVariableWrapper
.Instance)
NuGet.CommandLine.XPlat (2)
Commands\Package\Update\PackageUpdateCommandRunner.cs (1)
44
var restoreHelper = new PackageUpdateIO(args.Project, msBuild,
EnvironmentVariableWrapper
.Instance);
Program.cs (1)
47
return MainInternal(args, log,
EnvironmentVariableWrapper
.Instance, virtualProjectBuilder);
NuGet.Commands (6)
CommandRunners\PushRunner.cs (1)
56
environmentVariableReader:
EnvironmentVariableWrapper
.Instance);
RestoreCommand\RestoreCommand.cs (1)
182
EnvironmentVariableReader =
EnvironmentVariableWrapper
.Instance;
RestoreCommand\SourceRepositoryDependencyProvider.cs (2)
44
private readonly static SemaphoreSlim _throttle = GetThrottleSemaphoreSlim(
EnvironmentVariableWrapper
.Instance);
119
environmentVariableReader:
EnvironmentVariableWrapper
.Instance)
RestoreCommand\Utility\BuildAssetsUtils.cs (2)
183
AddNuGetProperties(doc, packageFolders, repositoryRoot, projectStyle, assetsFilePath, success,
EnvironmentVariableWrapper
.Instance);
345
return GetPathWithMacros(absolutePath, repositoryRoot,
EnvironmentVariableWrapper
.Instance);
NuGet.Common (4)
ConcurrencyUtilities.cs (1)
31
internal static IEnvironmentVariableReader EnvironmentVariableReader { get; set; } =
EnvironmentVariableWrapper
.Instance;
Logging\ExceptionLogger.cs (1)
39
public static ExceptionLogger Instance { get; } = new ExceptionLogger(
EnvironmentVariableWrapper
.Instance);
Migrations\MigrationRunner.cs (1)
16
Run(
EnvironmentVariableWrapper
.Instance);
PathUtil\NuGetEnvironment.cs (1)
38
internal static IEnvironmentVariableReader EnvironmentVariableReader { get; } =
EnvironmentVariableWrapper
.Instance;
NuGet.Configuration (16)
PackageSource\PackageSourceProvider.cs (9)
166
return LoadPackageSources(
EnvironmentVariableWrapper
.Instance);
175
return LoadAuditSources(
EnvironmentVariableWrapper
.Instance);
187
return LoadPackageSources(settings, ConfigurationConstants.PackageSources, ConfigurationDefaults.Instance.DefaultPackageSources,
EnvironmentVariableWrapper
.Instance);
363
return GetPackageSourceByName(name,
EnvironmentVariableWrapper
.Instance);
387
return GetPackageSourceNamesMatchingNamePrefix(namePrefix,
EnvironmentVariableWrapper
.Instance);
407
return GetPackageSourceBySource(source,
EnvironmentVariableWrapper
.Instance);
573
UpdatePackageSource(source, updateCredentials, updateEnabled,
EnvironmentVariableWrapper
.Instance);
771
SavePackageSources(sources,
EnvironmentVariableWrapper
.Instance);
879
SaveAuditSources(sources,
EnvironmentVariableWrapper
.Instance);
Proxy\ProxyCache.cs (1)
36
EnvironmentVariableWrapper
.Instance);
Settings\ConfigurationDefaults.cs (1)
72
PackageSource packageSource = PackageSourceProvider.ReadPackageSource(source, isEnabled, _settingsManager,
EnvironmentVariableWrapper
.Instance);
Utility\SettingsUtility.cs (5)
244
return GetGlobalPackagesFolder(settings,
EnvironmentVariableWrapper
.Instance);
283
return GetFallbackPackageFolders(settings,
EnvironmentVariableWrapper
.Instance);
345
return GetHttpCacheFolder(
EnvironmentVariableWrapper
.Instance);
371
return GetPluginsCacheFolder(
EnvironmentVariableWrapper
.Instance);
435
var reader = environmentVariableReader ??
EnvironmentVariableWrapper
.Instance;
NuGet.Credentials (2)
PluginCredentialProviderBuilder.cs (1)
35
: this(extensionLocator, settings, logger,
EnvironmentVariableWrapper
.Instance)
PreviewFeatureSettings.cs (1)
20
internal static IEnvironmentVariableReader environmentVariableReader { get; set; } =
EnvironmentVariableWrapper
.Instance;
NuGet.PackageManagement (1)
PackageRestoreConsent.cs (1)
27
: this(settings,
EnvironmentVariableWrapper
.Instance)
NuGet.Packaging (6)
PackageArchiveReader.cs (2)
118
_environmentVariableReader =
EnvironmentVariableWrapper
.Instance;
125
_environmentVariableReader =
EnvironmentVariableWrapper
.Instance;
PackageExtraction\PackageExtractionBehavior.cs (1)
14
internal static IEnvironmentVariableReader environmentVariableReader { get; set; } =
EnvironmentVariableWrapper
.Instance;
PackageExtraction\StreamExtensions.cs (1)
71
public static Testable Default { get; } = new Testable(
EnvironmentVariableWrapper
.Instance);
PackageExtraction\ZipArchiveExtensions.cs (1)
81
public static Testable Default { get; } = new Testable(
EnvironmentVariableWrapper
.Instance);
Signing\Utility\CertificateChainUtility.cs (1)
244
IX509ChainBuildPolicy policy = X509ChainBuildPolicyFactory.Create(
EnvironmentVariableWrapper
.Instance);
NuGet.ProjectModel (9)
DependencyGraphSpec.cs (3)
50
: this(isReadOnly,
EnvironmentVariableWrapper
.Instance)
320
var packageSpec = JsonPackageSpecReader.GetPackageSpec(ref jsonReader, name: null, path,
EnvironmentVariableWrapper
.Instance);
393
writeAction.Invoke(project, writer, hashing,
EnvironmentVariableWrapper
.Instance);
JsonPackageSpecReader.cs (1)
43
return GetPackageSpec(stream, name, packageSpecPath, snapshotValue,
EnvironmentVariableWrapper
.Instance);
LockFile\LockFileFormat.cs (1)
208
PackageSpecWriter.Write(lockFile.PackageSpec, jsonObjectWriter, hashing: false,
EnvironmentVariableWrapper
.Instance, useLegacyWriter: lockFile.Version <= LegacyVersion);
LockFile\Utf8JsonStreamLockFileConverter.cs (1)
143
EnvironmentVariableWrapper
.Instance,
PackageSpecReferenceDependencyProvider.cs (2)
38
environmentVariableReader:
EnvironmentVariableWrapper
.Instance,
48
environmentVariableReader:
EnvironmentVariableWrapper
.Instance,
PackageSpecWriter.cs (1)
33
Write(packageSpec, writer, hashing: false,
EnvironmentVariableWrapper
.Instance);
NuGet.Protocol (13)
HttpSource\HttpRetryHandler.cs (1)
24
public HttpRetryHandler() : this(
EnvironmentVariableWrapper
.Instance) { }
Plugins\ConnectionOptions.cs (1)
136
reader = reader ??
EnvironmentVariableWrapper
.Instance;
Plugins\Logging\EnvironmentVariablesLogMessage.cs (1)
21
var reader = environmentVariableReader ??
EnvironmentVariableWrapper
.Instance;
Plugins\Logging\PluginLogger.cs (1)
22
internal static PluginLogger DefaultInstance { get; } = new PluginLogger(
EnvironmentVariableWrapper
.Instance);
Plugins\PluginDiscoverer.cs (1)
31
: this(
EnvironmentVariableWrapper
.Instance)
Plugins\PluginFactory.cs (1)
40
: this(pluginIdleTimeout,
EnvironmentVariableWrapper
.Instance)
Plugins\PluginManager.cs (1)
51
EnvironmentVariableWrapper
.Instance,
Providers\ServiceIndexResourceV3Provider.cs (1)
51
_enhancedHttpRetryHelper = new EnhancedHttpRetryHelper(environmentVariableReader ??
EnvironmentVariableWrapper
.Instance);
RemoteRepositories\HttpFileSystemBasedFindPackageByIdResource.cs (1)
61
HttpSource httpSource) : this(baseUris, httpSource,
EnvironmentVariableWrapper
.Instance) { }
src\nuget-client\build\Shared\NuGetFeatureFlags.cs (1)
16
new Lazy<bool>(() => IsSystemTextJsonDeserializationEnabledByEnvironment(
EnvironmentVariableWrapper
.Instance));
UserAgentStringBuilder.cs (1)
33
: this(clientName,
EnvironmentVariableWrapper
.Instance)
Utility\FindPackagesByIdNupkgDownloader.cs (1)
30
public FindPackagesByIdNupkgDownloader(HttpSource httpSource) : this(httpSource,
EnvironmentVariableWrapper
.Instance) { }
Utility\PackageIdValidator.cs (1)
16
IsPackageIdValidationDisabled(
EnvironmentVariableWrapper
.Instance));