4 instantiations of SourceItem
NuGet.Configuration (4)
PackageSource\PackageSource.cs (1)
220
return new
SourceItem
(Name, Source, protocolVersion, allowInsecureConnections, disableTLSCertificateValidation)
Settings\Items\SourceItem.cs (1)
105
var newSetting = new
SourceItem
(Key, Value, ProtocolVersion, AllowInsecureConnections, DisableTLSCertificateValidation)
Settings\NuGetConfiguration.cs (1)
45
var defaultSource = new
SourceItem
(NuGetConstants.FeedName, NuGetConstants.V3FeedUrl, protocolVersion: PackageSourceProvider.MaxSupportedProtocolVersion.ToString(CultureInfo.CurrentCulture));
Settings\SettingFactory.cs (1)
49
return new
SourceItem
(element, origin);
26 references to SourceItem
NuGet.Configuration (26)
PackageSource\PackageSource.cs (1)
197
public
SourceItem
AsSourceItem()
PackageSource\PackageSourceProvider.cs (20)
117
var sourcesItems = packageSourcesSection?.Items.OfType<
SourceItem
>();
138
foreach (
var
setting in sources)
347
internal static PackageSource ReadPackageSource(
SourceItem
setting, bool isEnabled, ISettings settings, IEnvironmentVariableReader environmentVariableReader)
377
private static int ReadProtocolVersion(
SourceItem
setting)
387
private static bool ReadDisableTLSCertificateValidation(
SourceItem
setting)
397
private static bool ReadAllowInsecureConnections(
SourceItem
setting)
407
private static TimeSpan ReadMinPublishAge(
SourceItem
setting)
586
var sourcesSettings = packageSourcesSection?.Items.OfType<
SourceItem
>();
597
foreach (
var
source in sourcesToRemove)
647
if (settingsLookup.TryGetValue(name, out
var
sourceSetting))
725
packageSources.TryGetValue(source.Name, out
var
sourceToUpdate);
954
SourceItem
? existingSourceItem = null;
1042
SourceItem
? existingSourceItem = null;
1082
private Dictionary<string,
SourceItem
> GetExistingSettingsLookup()
1087
private Dictionary<string,
SourceItem
> GetExistingSettingsLookup(string sectionName)
1090
List<
SourceItem
>? existingSettings = sourcesSection?.Items.OfType<
SourceItem
>().Where(
1094
var existingSettingsLookup = new Dictionary<string,
SourceItem
>(StringComparer.OrdinalIgnoreCase);
1097
foreach (
var
setting in existingSettings)
1099
if (existingSettingsLookup.TryGetValue(setting.Key, out
var
previouslyAddedSetting) &&
Settings\ConfigurationDefaults.cs (3)
60
IEnumerable<
SourceItem
>? sourceItems = _settingsManager.GetSection(sectionName)?.Items.OfType<
SourceItem
>();
69
foreach (
var
source in sourceItems)
Settings\Items\SourceItem.cs (1)
105
var
newSetting = new SourceItem(Key, Value, ProtocolVersion, AllowInsecureConnections, DisableTLSCertificateValidation)
Settings\NuGetConfiguration.cs (1)
45
var
defaultSource = new SourceItem(NuGetConstants.FeedName, NuGetConstants.V3FeedUrl, protocolVersion: PackageSourceProvider.MaxSupportedProtocolVersion.ToString(CultureInfo.CurrentCulture));