1 write to IsEnabled
NuGet.Configuration (1)
PackageSource\PackageSource.cs (1)
155
IsEnabled
= isEnabled;
36 references to IsEnabled
aspire-managed (3)
NuGet\Commands\RestoreCommand.cs (2)
261
if (source.
IsEnabled
&& !packageSources.Any(s => s.Source == source.Source))
289
if (source.
IsEnabled
&& !packageSources.Any(s => s.Source == source.Source))
NuGet\Commands\SearchCommand.cs (1)
212
if (source.
IsEnabled
)
dotnet (1)
NugetPackageDownloader\NuGetPackageDownloader.cs (1)
507
defaultSources = [.. packageSourceProvider.LoadPackageSources().Where(source => source.
IsEnabled
)];
Microsoft.DotNet.Build.Tasks.Packaging (1)
NuGetUtility.cs (1)
81
return provider.LoadPackageSources().Where(e => e.
IsEnabled
== true).ToList();
Microsoft.TemplateEngine.Cli (1)
TemplatePackageCoordinator.cs (1)
860
defaultSources = packageSourceProvider.LoadPackageSources().Where(source => source.
IsEnabled
);
Microsoft.TemplateEngine.Edge (1)
Installers\NuGet\NugetApiPackageManager.cs (1)
446
defaultSources = packageSourceProvider.LoadPackageSources().Where(source => source.
IsEnabled
);
NuGet.Build.Tasks (1)
BuildTasksUtility.cs (1)
660
() => (PackageSourceProvider.LoadPackageSources(settings)).Where(e => e.
IsEnabled
).Select(e => e.Source).ToArray());
NuGet.CommandLine.XPlat (4)
Commands\Package\Download\PackageDownloadRunner.cs (1)
342
.Where(s => s.
IsEnabled
);
Commands\Package\Update\PackageUpdateIO.cs (1)
260
IReadOnlyList<PackageSource>? auditSources = _sourceProvider.LoadAuditSources()?.Where(s => s.
IsEnabled
).ToList();
Commands\PackageReferenceCommands\ListPackage\ListPackageCommand.cs (1)
237
var availableSources = PackageSourceProvider.LoadPackageSources(settings).Where(source => source.
IsEnabled
);
Commands\PackageSearch\PackageSearchRunner.cs (1)
215
.Where(p => p.
IsEnabled
);
NuGet.Commands (10)
RestoreCommand\RequestFactory\DependencyGraphSpecRequestProvider.cs (1)
243
if (source.
IsEnabled
)
RestoreCommand\RequestFactory\RestoreArgs.cs (1)
170
if (source.
IsEnabled
&& (sourceObjects.ContainsKey(source.Source)))
RestoreCommand\Utility\PackageSpecFactory.cs (1)
157
.Where(e => e.
IsEnabled
)
SourcesCommands\SourceRunners.cs (4)
164
source.
IsEnabled
? string.Format(CultureInfo.CurrentCulture, Strings.SourcesCommandEnabled) : string.Format(CultureInfo.CurrentCulture, Strings.SourcesCommandDisabled)));
180
string legend = source.
IsEnabled
? "E" : "D";
369
if (enable && !packageSource.
IsEnabled
)
373
else if (!enable && packageSource.
IsEnabled
)
Utility\CommandRunnerUtility.cs (2)
88
if (loadedPackageSource.
IsEnabled
&& source == loadedPackageSource.Source)
108
.FirstOrDefault(e => e.
IsEnabled
&& string.Equals(source, e.Source, StringComparison.OrdinalIgnoreCase));
Utility\PackageSourceProviderExtensions.cs (1)
41
var sources = sourceProvider.LoadPackageSources().Where(s => s.
IsEnabled
);
NuGet.Configuration (6)
PackageSource\PackageSource.cs (1)
208
return new PackageSource(Source, Name,
IsEnabled
, IsOfficial, IsPersistable)
PackageSource\PackageSourceProvider.cs (3)
668
if (newSource.
IsEnabled
&& existingDisabledSourceItem != null)
674
if (!newSource.
IsEnabled
&& existingDisabledSourceItem == null)
746
if (source.
IsEnabled
)
Utility\SettingsUtility.cs (2)
395
return PackageSourceProvider.LoadPackageSources(settings).Where(e => e.
IsEnabled
== true).ToList();
423
if (!allSources.Any(s => s.
IsEnabled
&& s.Name.Equals(source, StringComparison.OrdinalIgnoreCase)))
NuGet.PackageManagement (5)
NuGetPackageManager.cs (2)
1763
secondarySources = SourceRepositoryProvider.GetRepositories().Where(e => e.PackageSource.
IsEnabled
);
3627
SourceRepositoryProvider.GetRepositories().Where(e => e.PackageSource.
IsEnabled
);
Utility\UriHelper.cs (3)
84
if (activeSource.
IsEnabled
)
174
if (activeSource.
IsEnabled
)
225
if (activeSource.
IsEnabled
)
NuGet.Protocol (2)
CachingSourceProvider.cs (1)
36
.Where(s => s.
IsEnabled
)
SourceRepositoryProvider.cs (1)
79
if (source.
IsEnabled
)
NuGet.Resolver (1)
ResolverUtility.cs (1)
135
packageSources.Where(source => source.
IsEnabled
)