1 implementation of Key
Microsoft.Extensions.Configuration (1)
ConfigurationSection.cs (1)
44public string Key =>
45 references to Key
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\BicepProvisioner.cs (1)
74resource.SecretOutputs[item.Key] = item.Value;
Microsoft.AspNetCore.BrowserTesting (3)
BrowserManagerConfiguration.cs (3)
99var browserName = browser.Key; 121ContextOptions.Add(option.Key, LoadContextOptions(option)); 238var argName = arg.Key;
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Internal\ConfigSectionClone.cs (1)
19Children = children.ToDictionary(child => child.Key, child => new ConfigSectionClone(child));
Internal\ConfigurationReader.cs (6)
46certificates.Add(certificateConfig.Key, new CertificateConfig(certificateConfig)); 100throw new InvalidOperationException(CoreStrings.FormatEndpointMissingUrl(endpointConfig.Key)); 104endpointConfig.Key, 106ReadSni(endpointConfig.GetSection(SniKey), endpointConfig.Key), 147if (string.IsNullOrEmpty(sniChild.Key)) 160sniDictionary.Add(sniChild.Key, sni);
Microsoft.Extensions.Configuration (2)
ChainedConfigurationProvider.cs (1)
81keys.Add(child.Key);
ConfigurationSectionDebugView.cs (1)
24public string Key => _section.Key;
Microsoft.Extensions.Configuration.Abstractions (3)
ConfigurationRootExtensions.cs (3)
50? processValue(new ConfigurationDebugViewContext(child.Path, child.Key, valueAndProvider.Value, valueAndProvider.Provider)) 55.Append(child.Key) 66.Append(child.Key)
Microsoft.Extensions.Configuration.Binder (5)
ConfigurationBinder.cs (5)
235if (!propertyNames.Contains(cs.Key)) 237(missingPropertyNames ??= new()).Add($"'{cs.Key}'"); 716object key = keyTypeIsEnum ? Enum.Parse(keyType, child.Key, true) : 717keyTypeIsInteger ? Convert.ChangeType(child.Key, keyType) : 718child.Key;
Microsoft.Extensions.Configuration.KeyPerFile.Tests (12)
ConfigurationProviderTestBase.cs (12)
257Assert.Equal("Key1", sections[0].Key, StringComparer.InvariantCultureIgnoreCase); 261Assert.Equal("Section1", sections[1].Key, StringComparer.InvariantCultureIgnoreCase); 265Assert.Equal("Section3", sections[2].Key, StringComparer.InvariantCultureIgnoreCase); 273Assert.Equal("Key2", sections[0].Key, StringComparer.InvariantCultureIgnoreCase); 277Assert.Equal("Section2", sections[1].Key, StringComparer.InvariantCultureIgnoreCase); 285Assert.Equal("Key3", sections[0].Key, StringComparer.InvariantCultureIgnoreCase); 289Assert.Equal("Key3a", sections[1].Key, StringComparer.InvariantCultureIgnoreCase); 297Assert.Equal("0", sections[0].Key, StringComparer.InvariantCultureIgnoreCase); 301Assert.Equal("1", sections[1].Key, StringComparer.InvariantCultureIgnoreCase); 305Assert.Equal("2", sections[2].Key, StringComparer.InvariantCultureIgnoreCase); 313Assert.Equal("Section4", sections[0].Key, StringComparer.InvariantCultureIgnoreCase); 321Assert.Equal("Key4", sections[0].Key, StringComparer.InvariantCultureIgnoreCase);
Microsoft.Extensions.Diagnostics (6)
Metrics\Configuration\MetricsConfigureOptions.cs (6)
30if (configurationSection.Key.Equals(EnabledMetricsKey, StringComparison.OrdinalIgnoreCase)) 35else if (configurationSection.Key.Equals(EnabledGlobalMetricsKey, StringComparison.OrdinalIgnoreCase)) 40else if (configurationSection.Key.Equals(EnabledLocalMetricsKey, StringComparison.OrdinalIgnoreCase)) 48var listenerName = configurationSection.Key; 82var meterName = meterSection.Key; 108options.Rules.Add(new InstrumentRule(meterSection.Key, instrumentName, listenerName, scopes, instrumentEnabled));
Microsoft.Extensions.Logging.Configuration (2)
LoggerFilterConfigureOptions.cs (2)
37if (configurationSection.Key.Equals(LogLevelKey, StringComparison.OrdinalIgnoreCase)) 48string logger = configurationSection.Key;
Microsoft.Extensions.ObjectPool.DependencyInjection (2)
ObjectPoolServiceCollectionExtensions.cs (2)
87Throw.ArgumentException(nameof(section), $"Can't parse '{child.Key}' value '{child.Value}' to integer."); 90_ = services.Configure<DependencyInjectionPoolOptions>(child.Key, options => options.Capacity = capacity);
Microsoft.Extensions.ServiceDiscovery (2)
Configuration\ConfigurationServiceEndpointProvider.cs (2)
121if (!int.TryParse(child.Key, out _)) 196throw new KeyNotFoundException($"The endpoint configuration section for service '{_serviceName}' endpoint '{endpointName}' has an invalid value with key '{section.Key}'.");