3 implementations of GetSection
NuGet.Configuration (3)
Settings\ImmutableSettings.cs (1)
46
public SettingSection?
GetSection
(string sectionName)
Settings\NullSettings.cs (1)
17
public SettingSection?
GetSection
(string sectionName) => null;
Settings\Settings.cs (1)
46
public SettingSection?
GetSection
(string sectionName)
28 references to GetSection
NuGet.CommandLine.XPlat (1)
Commands\ConfigCommands\ConfigRunners.cs (1)
182
SettingSection sectionElement = settings.
GetSection
(ConfigurationConstants.Config);
NuGet.Configuration (25)
ClientCertificate\ClientCertificateProvider.cs (1)
58
SettingSection? clientCertificatesSection = _settings.
GetSection
(ConfigurationConstants.ClientCertificates);
PackageSource\PackageSourceProvider.cs (15)
116
var packageSourcesSection = settings.
GetSection
(sectionName);
131
var disabledSourcesSection = settings.
GetSection
(ConfigurationConstants.DisabledPackageSources);
323
var credentialsSection = settings.
GetSection
(ConfigurationConstants.CredentialsSectionName);
444
var packageSourcesSection = Settings.
GetSection
(ConfigurationConstants.PackageSources);
448
var sourceCredentialsSection = Settings.
GetSection
(ConfigurationConstants.CredentialsSectionName);
549
var disabledSourcesSection = Settings.
GetSection
(ConfigurationConstants.DisabledPackageSources);
594
var disabledSourcesSection = Settings.
GetSection
(ConfigurationConstants.DisabledPackageSources);
601
var credentialsSection = Settings.
GetSection
(ConfigurationConstants.CredentialsSectionName);
784
var disabledSourcesSection = Settings.
GetSection
(ConfigurationConstants.DisabledPackageSources);
804
var credentialsSection = Settings.
GetSection
(ConfigurationConstants.CredentialsSectionName);
846
var sourceCredentialsSection = Settings.
GetSection
(ConfigurationConstants.CredentialsSectionName);
946
SettingSection? sourcesSection = Settings.
GetSection
(sectionName);
1000
var disabledSources = Settings.
GetSection
(ConfigurationConstants.DisabledPackageSources);
1015
var activeSourceSection = Settings.
GetSection
(ConfigurationConstants.ActivePackageSourceSectionName);
1033
var activePackageSourceSection = Settings.
GetSection
(ConfigurationConstants.ActivePackageSourceSectionName);
PackageSourceMapping\PackageSourceMappingProvider.cs (1)
38
SettingSection? packageSourceMappingSection = _settings.
GetSection
(ConfigurationConstants.PackageSourceMapping);
Settings\ConfigurationDefaults.cs (2)
60
IEnumerable<SourceItem>? sourceItems = _settingsManager.
GetSection
(sectionName)?.Items.OfType<SourceItem>();
66
var disabledPackageSources = _settingsManager.
GetSection
(ConfigurationConstants.DisabledPackageSources)?.Items.OfType<AddItem>() ?? Enumerable.Empty<AddItem>();
Settings\ImmutableSettings.cs (1)
48
return _settings.
GetSection
(sectionName);
Utility\SettingsUtility.cs (5)
29
var sectionElement = settings.
GetSection
(section);
52
var sectionElement = settings.
GetSection
(section);
141
var sectionElement = settings.
GetSection
(section);
327
var fallbackFoldersSection = settings.
GetSection
(ConfigurationConstants.FallbackPackageFolders);
412
var configSection = settings.
GetSection
(ConfigurationConstants.Config);
NuGet.Packaging (2)
Signing\TrustedSigners\TrustedSignersProvider.cs (2)
24
var trustedSignersSection = _settings.
GetSection
(ConfigurationConstants.TrustedSigners);
77
var trustedSignersSection = settings.
GetSection
(ConfigurationConstants.TrustedSigners);