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)
234
internal static PackageSource ReadPackageSource(
SourceItem
setting, bool isEnabled, ISettings settings, IEnvironmentVariableReader environmentVariableReader)
264
private static int ReadProtocolVersion(
SourceItem
setting)
274
private static bool ReadDisableTLSCertificateValidation(
SourceItem
setting)
284
private static bool ReadAllowInsecureConnections(
SourceItem
setting)
294
private static TimeSpan ReadMinPublishAge(
SourceItem
setting)
473
var sourcesSettings = packageSourcesSection?.Items.OfType<
SourceItem
>();
484
foreach (
var
source in sourcesToRemove)
534
if (settingsLookup.TryGetValue(name, out
var
sourceSetting))
612
packageSources.TryGetValue(source.Name, out
var
sourceToUpdate);
841
SourceItem
? existingSourceItem = null;
929
SourceItem
? existingSourceItem = null;
969
private Dictionary<string,
SourceItem
> GetExistingSettingsLookup()
974
private Dictionary<string,
SourceItem
> GetExistingSettingsLookup(string sectionName)
977
List<
SourceItem
>? existingSettings = sourcesSection?.Items.OfType<
SourceItem
>().Where(
981
var existingSettingsLookup = new Dictionary<string,
SourceItem
>(StringComparer.OrdinalIgnoreCase);
984
foreach (
var
setting in existingSettings)
986
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));