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