1 implementation of Key
Microsoft.Extensions.Configuration (1)
ConfigurationSection.cs (1)
44public string Key =>
56 references to Key
aspire (10)
Agents\AspireSkills\SkillSource.cs (3)
82var names = new[] { DefaultName }.Concat(section.GetChildren().Select(child => child.Key)) 102var plugins = settings.GetChildren().Any(child => child.Key.Equals("plugins", StringComparison.OrdinalIgnoreCase)) 108child.Key != index.ToString(CultureInfo.InvariantCulture) || child.GetChildren().Any()).Any())
Packaging\IntegrationSourceConfiguration.cs (7)
67SourceNameValidator.Validate(entry.Key, $"{SectionName}.{entry.Key}"); 70throw InvalidConfiguration($"{SectionName}.{entry.Key}"); 74sources.Add(ResolveSource(source, $"{SectionName}.{entry.Key}.source", directory)); 90foreach (var name in new[] { DefaultName }.Concat(section.GetChildren().Select(child => child.Key)).Distinct(StringComparer.OrdinalIgnoreCase)) 108var hasPatterns = settings.GetChildren().Any(child => child.Key.Equals("patterns", StringComparison.OrdinalIgnoreCase)); 119patternsSection.GetChildren().Where((child, index) => child.Key != index.ToString(CultureInfo.InvariantCulture)).Any() ||
Aspire.Hosting (1)
ProjectResourceBuilderExtensions.cs (1)
724EndpointName = endpoint.Key,
dotnet-user-jwts (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
141if (!keys.Value.Contains(section.Key)) 143(temp ??= new global::System.Collections.Generic.List<string>()).Add($"'{section.Key}'");
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\Internal\LoggingRedactionOptionsConfigureOptions.cs (1)
65destination[child.Key] = ParseDataClassification(child);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Logging\HttpLoggingServiceExtensionsTests.cs (1)
88.Select(child => child.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)
99keys.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)
293if (!propertyNames.Contains(cs.Key)) 295(missingPropertyNames ??= new()).Add($"'{cs.Key}'"); 850object key = keyTypeIsEnum ? Enum.Parse(keyType, child.Key, true) : 851keyTypeIsInteger ? Convert.ChangeType(child.Key, keyType) : 852child.Key;
Microsoft.Extensions.Diagnostics (12)
Metrics\Configuration\MetricsConfigureOptions.cs (6)
31if (configurationSection.Key.Equals(EnabledMetricsKey, StringComparison.OrdinalIgnoreCase)) 36else if (configurationSection.Key.Equals(EnabledGlobalMetricsKey, StringComparison.OrdinalIgnoreCase)) 41else if (configurationSection.Key.Equals(EnabledLocalMetricsKey, StringComparison.OrdinalIgnoreCase)) 49var listenerName = configurationSection.Key; 83var meterName = meterSection.Key; 109options.Rules.Add(new InstrumentRule(meterSection.Key, instrumentName, listenerName, scopes, instrumentEnabled));
Tracing\Configuration\TracingConfigureOptions.cs (6)
32if (configurationSection.Key.Equals(EnabledTracingKey, StringComparison.OrdinalIgnoreCase)) 36else if (configurationSection.Key.Equals(EnabledGlobalTracingKey, StringComparison.OrdinalIgnoreCase)) 40else if (configurationSection.Key.Equals(EnabledLocalTracingKey, StringComparison.OrdinalIgnoreCase)) 46var listenerName = configurationSection.Key; 78var sourceName = activitySourceSection.Key; 101options.Rules.Add(new TracingRule(activitySourceSection.Key, operationName, listenerName, scopes, enabled));
Microsoft.Extensions.Http.Diagnostics (1)
Logging\Internal\LoggingOptionsConfigureOptions.cs (1)
82destination[child.Key] = ParseDataClassification(child);
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\HttpClientLoggingExtensionsTest.cs (1)
281configurationSection.GetChildren().Select(child => child.Key).Should().BeEquivalentTo(
Microsoft.Extensions.Logging.Configuration (2)
LoggerFilterConfigureOptions.cs (2)
37if (configurationSection.Key.Equals(LogLevelKey, StringComparison.OrdinalIgnoreCase)) 48string logger = configurationSection.Key;
Microsoft.Extensions.Logging.Console (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
540if (!keys.Value.Contains(section.Key)) 542(temp ??= new global::System.Collections.Generic.List<string>()).Add($"'{section.Key}'");
Microsoft.Extensions.Logging.EventLog (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
122if (!keys.Value.Contains(section.Key)) 124(temp ??= new global::System.Collections.Generic.List<string>()).Add($"'{section.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)
120if (!int.TryParse(child.Key, out _)) 194throw new KeyNotFoundException($"The endpoint configuration section for service '{_serviceName}' endpoint '{endpointName}' has an invalid value with key '{section.Key}'.");