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)
29 references to GetSection
NuGet.CommandLine.XPlat (1)
Commands\ConfigCommands\ConfigRunners.cs (1)
182
SettingSection sectionElement = settings.
GetSection
(ConfigurationConstants.Config);
NuGet.Configuration (26)
ClientCertificate\ClientCertificateProvider.cs (1)
58
SettingSection? clientCertificatesSection = _settings.
GetSection
(ConfigurationConstants.ClientCertificates);
PackageSource\PackageSourceProvider.cs (16)
116
var packageSourcesSection = settings.
GetSection
(sectionName);
131
var disabledSourcesSection = settings.
GetSection
(ConfigurationConstants.DisabledPackageSources);
267
var sectionItems = Settings.
GetSection
(ConfigurationConstants.MinPublishAgeExceptions)?
464
var credentialsSection = settings.
GetSection
(ConfigurationConstants.CredentialsSectionName);
585
var packageSourcesSection = Settings.
GetSection
(ConfigurationConstants.PackageSources);
589
var sourceCredentialsSection = Settings.
GetSection
(ConfigurationConstants.CredentialsSectionName);
690
var disabledSourcesSection = Settings.
GetSection
(ConfigurationConstants.DisabledPackageSources);
735
var disabledSourcesSection = Settings.
GetSection
(ConfigurationConstants.DisabledPackageSources);
742
var credentialsSection = Settings.
GetSection
(ConfigurationConstants.CredentialsSectionName);
927
var disabledSourcesSection = Settings.
GetSection
(ConfigurationConstants.DisabledPackageSources);
947
var credentialsSection = Settings.
GetSection
(ConfigurationConstants.CredentialsSectionName);
989
var sourceCredentialsSection = Settings.
GetSection
(ConfigurationConstants.CredentialsSectionName);
1089
SettingSection? sourcesSection = Settings.
GetSection
(sectionName);
1143
var disabledSources = Settings.
GetSection
(ConfigurationConstants.DisabledPackageSources);
1158
var activeSourceSection = Settings.
GetSection
(ConfigurationConstants.ActivePackageSourceSectionName);
1176
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);