1 write to IsEnabled
NuGet.Configuration (1)
PackageSourceMapping\PackageSourceMapping.cs (1)
55
IsEnabled
= Patterns.Count > 0;
16 references to IsEnabled
dotnet-aot (2)
parent\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (2)
480
if (mapping?.
IsEnabled
!= true)
526
if (_shouldUsePackageSourceMapping && packageSourceMapping?.
IsEnabled
== true)
NuGet.CommandLine.XPlat (4)
Commands\Package\Download\PackageDownloadRunner.cs (1)
63
|| !packageSourceMapping.
IsEnabled
;
Commands\Package\Update\PackageUpdateCommandRunner.cs (3)
207
IReadOnlyList<string>? mappedSources = sourceMapping.
IsEnabled
? sourceMapping.GetConfiguredPackageSources(packageIdentity.Id) : null;
521
IReadOnlyList<string>? mappedSources = sourceMapping.
IsEnabled
? sourceMapping.GetConfiguredPackageSources(package.Id) : null;
715
IReadOnlyList<string>? mappedSources = sourceMapping.
IsEnabled
? sourceMapping.GetConfiguredPackageSources(package.identity.Id) : null;
NuGet.Commands (5)
RestoreCommand\Diagnostics\UnresolvedMessages.cs (2)
38
context.PackageSourceMapping.
IsEnabled
,
61
context.PackageSourceMapping.
IsEnabled
,
RestoreCommand\RestoreCommand.cs (3)
392
bool isPackageSourceMappingEnabled = _request.PackageSourceMapping?.
IsEnabled
?? false;
1153
IReadOnlyList<string> mappedSourceNames = request.PackageSourceMapping.
IsEnabled
1372
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;