4 instantiations of SourceItem
NuGet.Configuration (4)
PackageSource\PackageSource.cs (1)
178
return new
SourceItem
(Name, Source, protocolVersion, allowInsecureConnections, disableTLSCertificateValidation);
Settings\Items\SourceItem.cs (1)
91
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);
25 references to SourceItem
NuGet.Configuration (25)
PackageSource\PackageSource.cs (1)
160
public
SourceItem
AsSourceItem()
PackageSource\PackageSourceProvider.cs (19)
117
var sourcesItems = packageSourcesSection?.Items.OfType<
SourceItem
>();
138
foreach (
var
setting in sources)
233
internal static PackageSource ReadPackageSource(
SourceItem
setting, bool isEnabled, ISettings settings, IEnvironmentVariableReader environmentVariableReader)
262
private static int ReadProtocolVersion(
SourceItem
setting)
272
private static bool ReadDisableTLSCertificateValidation(
SourceItem
setting)
282
private static bool ReadAllowInsecureConnections(
SourceItem
setting)
445
var sourcesSettings = packageSourcesSection?.Items.OfType<
SourceItem
>();
456
foreach (
var
source in sourcesToRemove)
506
if (settingsLookup.TryGetValue(name, out
var
sourceSetting))
584
packageSources.TryGetValue(source.Name, out
var
sourceToUpdate);
811
SourceItem
? existingSourceItem = null;
899
SourceItem
? existingSourceItem = null;
939
private Dictionary<string,
SourceItem
> GetExistingSettingsLookup()
944
private Dictionary<string,
SourceItem
> GetExistingSettingsLookup(string sectionName)
947
List<
SourceItem
>? existingSettings = sourcesSection?.Items.OfType<
SourceItem
>().Where(
951
var existingSettingsLookup = new Dictionary<string,
SourceItem
>(StringComparer.OrdinalIgnoreCase);
954
foreach (
var
setting in existingSettings)
956
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)
91
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));