1 write to IsEnabled
NuGet.Configuration (1)
PackageSourceMapping\PackageSourceMapping.cs (1)
55IsEnabled = Patterns.Count > 0;
15 references to IsEnabled
dotnet (2)
NugetPackageDownloader\NuGetPackageDownloader.cs (2)
472if (mapping?.IsEnabled != true) 518if (_shouldUsePackageSourceMapping && packageSourceMapping?.IsEnabled == true)
NuGet.CommandLine.XPlat (4)
Commands\Package\Download\PackageDownloadRunner.cs (1)
63|| !packageSourceMapping.IsEnabled;
Commands\Package\Update\PackageUpdateCommandRunner.cs (3)
191IReadOnlyList<string>? mappedSources = sourceMapping.IsEnabled ? sourceMapping.GetConfiguredPackageSources(packageIdentity.Id) : null; 410IReadOnlyList<string>? mappedSources = sourceMapping.IsEnabled ? sourceMapping.GetConfiguredPackageSources(package.Id) : null; 569IReadOnlyList<string>? mappedSources = sourceMapping.IsEnabled ? sourceMapping.GetConfiguredPackageSources(package.identity.Id) : null;
NuGet.Commands (4)
RestoreCommand\Diagnostics\UnresolvedMessages.cs (2)
38context.PackageSourceMapping.IsEnabled, 61context.PackageSourceMapping.IsEnabled,
RestoreCommand\RestoreCommand.cs (2)
379bool isPackageSourceMappingEnabled = _request.PackageSourceMapping?.IsEnabled ?? false; 1122if (!restoreRequest.PackageSourceMapping.IsEnabled && httpSourcesCount > 1)
NuGet.Configuration (1)
PackageSourceMapping\PackageSourceMapping.cs (1)
56SearchTree = IsEnabled ? new Lazy<SearchTree>(() => GetSearchTree()) : null;
NuGet.DependencyResolver.Core (2)
Remote\RemoteWalkContext.cs (1)
67if (PackageSourceMapping?.IsEnabled == true && libraryRange.TypeConstraintAllows(LibraryDependencyTarget.Package))
ResolverUtility.cs (1)
585if (context.PackageSourceMapping?.IsEnabled == true)
NuGet.PackageManagement (2)
PackageDownloader.cs (1)
103bool isPackageSourceMappingEnabled = downloadContext.PackageSourceMapping?.IsEnabled == true;
Resolution\ResolverGather.cs (1)
48_isSourceMappingConfigured = _context.PackageSourceMapping?.IsEnabled == true;