1 implementation of Value
Microsoft.Extensions.Configuration (1)
ConfigurationSection.cs (1)
51public string? Value
37 references to Value
aspire (4)
Agents\AspireSkills\SkillSource.cs (4)
76if (section.Value is not null) 88if (settings.Value is not null || !IsIdentifier(name)) 101? pluginEntries.Select(child => child.Value ?? string.Empty).ToArray() 103if (pluginsSection.Value is not null || plugins.Length == 0 ||
Aspire.Cli.Tests (1)
Configuration\ConfigurationHelperTests.cs (1)
365Assert.Equal(["1", "2"], config.GetSection("settings:values").GetChildren().Select(child => child.Value));
dotnet-user-jwts (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (3)
78if (!string.IsNullOrEmpty(section.Value) && !section.GetChildren().Any()) 127value = key != null ? configuration[key] : configuration is IConfigurationSection sec ? sec.Value : null; 156if ((configuration as IConfigurationSection)?.Value is not null)
Microsoft.AspNetCore.Authentication.JwtBearer (2)
JwtBearerConfigureOptions.cs (2)
45var issuers = configSection.GetSection(nameof(TokenValidationParameters.ValidIssuers)).GetChildren().Select(iss => iss.Value).ToList(); 48var audiences = configSection.GetSection(nameof(TokenValidationParameters.ValidAudiences)).GetChildren().Select(aud => aud.Value).ToList();
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectConfigureOptions.cs (1)
112var elementsFromConfig = listConfigSection.GetChildren().Select(element => element.Value).OfType<string>();
Microsoft.AspNetCore.Diagnostics.Middleware (3)
Logging\Internal\LoggingRedactionOptionsConfigureOptions.cs (3)
54if (child.Value is string value) 75if (section.Value is string value) 104if (valueSection.Value is not string value)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\ConfigSectionClone.cs (1)
15Value = configSection.Value;
Internal\ConfigurationReader.cs (1)
196stringProtocols[i] = childrenSections[i].Value!;
Microsoft.Extensions.Configuration (1)
ConfigurationSectionDebugView.cs (1)
26public string? Value => _section.Value;
Microsoft.Extensions.Configuration.Abstractions (3)
ConfigurationExtensions.cs (3)
65yield return new KeyValuePair<string, string?>(section.Path.Substring(prefixLength), section.Value); 75/// Determines whether the section has a <see cref="IConfigurationSection.Value"/> or has children. 85return section.Value != null || section.GetChildren().Any();
Microsoft.Extensions.Configuration.Binder (2)
ConfigurationBinder.cs (2)
268string? value = section.Value; 427configValue = section?.Value;
Microsoft.Extensions.Diagnostics (2)
Metrics\Configuration\MetricsConfigureOptions.cs (1)
81else if (bool.TryParse(meterSection.Value, out var meterEnabled))
Tracing\Configuration\TracingConfigureOptions.cs (1)
108if (bool.TryParse(activitySourceSection.Value, out enabled))
Microsoft.Extensions.Http.Diagnostics (3)
Logging\Internal\LoggingOptionsConfigureOptions.cs (3)
71if (child.Value is string value) 92if (section.Value is string value) 121if (valueSection.Value is not string value)
Microsoft.Extensions.Logging.AzureAppServices (3)
BatchLoggerConfigureOptions.cs (1)
22options.IsEnabled = TextToBoolean(_configuration.GetSection(_isEnabledKey)?.Value);
BlobLoggerConfigureOptions.cs (1)
27options.ContainerUrl = _configuration.GetSection("APPSETTING_DIAGNOSTICS_AZUREBLOBCONTAINERSASURL")?.Value;
ConfigurationBasedLevelSwitcher.cs (1)
30return TextToLogLevel(_configuration.GetSection(_levelKey)?.Value);
Microsoft.Extensions.Logging.Configuration (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
68value = key != null ? configuration[key] : configuration is IConfigurationSection sec ? sec.Value : null;
Microsoft.Extensions.Logging.Console (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
526value = key != null ? configuration[key] : configuration is IConfigurationSection sec ? sec.Value : null;
Microsoft.Extensions.Logging.EventLog (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
108value = key != null ? configuration[key] : configuration is IConfigurationSection sec ? sec.Value : null;
Microsoft.Extensions.ObjectPool.DependencyInjection (2)
ObjectPoolServiceCollectionExtensions.cs (2)
85if (!int.TryParse(child.Value, NumberStyles.Integer, CultureInfo.InvariantCulture, out var capacity)) 87Throw.ArgumentException(nameof(section), $"Can't parse '{child.Key}' value '{child.Value}' to integer.");
Microsoft.Extensions.ServiceDiscovery (2)
Configuration\ConfigurationServiceEndpointProvider.cs (2)
110if (!string.IsNullOrWhiteSpace(namedSection.Value)) 192if (!ServiceEndpoint.TryParse(section.Value, out var serviceEndpoint))