1 implementation of Value
Microsoft.Extensions.Configuration (1)
ConfigurationSection.cs (1)
51public string? Value
45 references to Value
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\BicepProvisioner.cs (1)
74resource.SecretOutputs[item.Key] = item.Value;
DefaultBuilder.SampleApp (1)
Startup.cs (1)
56await response.WriteAsync($"{pair.Path}: {pair.Value}\r\n");
Kestrel.SampleApp (1)
Startup.cs (1)
191Console.WriteLine($"{pair.Path} - {pair.Value}");
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.BrowserTesting (3)
BrowserManagerConfiguration.cs (3)
240if (arg.Value == null) 261else if (!bool.TryParse(arg.Value, out var switchValue)) 266argValue.Add(arg.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 (3)
ConfigurationBinder.cs (3)
213string? value = section.Value; 342string? configValue = section?.Value; 1077var propertyBindingPoint = new BindingPoint(initialValue: config.GetSection(parameterName).Value, isReadOnly: false);
Microsoft.Extensions.Configuration.KeyPerFile.Tests (19)
ConfigurationProviderTestBase.cs (19)
214Assert.Null(section1.Value); 222Assert.Null(section2.Value); 230Assert.Null(section2.Value); 237Assert.Null(section3a.Value); 241Assert.Null(section3.Value); 246Assert.Null(section4.Value); 251Assert.Null(section4.Value); 259Assert.Equal(value1, sections[0].Value, StringComparer.InvariantCultureIgnoreCase); 263Assert.Null(sections[1].Value); 267Assert.Null(sections[2].Value); 275Assert.Equal(value12, sections[0].Value, StringComparer.InvariantCultureIgnoreCase); 279Assert.Null(sections[1].Value); 287Assert.Equal(value123, sections[0].Value, StringComparer.InvariantCultureIgnoreCase); 291Assert.Null(sections[1].Value); 299Assert.Equal(arrayvalue0, sections[0].Value, StringComparer.InvariantCultureIgnoreCase); 303Assert.Equal(arrayvalue1, sections[1].Value, StringComparer.InvariantCultureIgnoreCase); 307Assert.Equal(arrayvalue2, sections[2].Value, StringComparer.InvariantCultureIgnoreCase); 315Assert.Null(sections[0].Value); 323Assert.Equal(value344, sections[0].Value, StringComparer.InvariantCultureIgnoreCase);
Microsoft.Extensions.Diagnostics (1)
Metrics\Configuration\MetricsConfigureOptions.cs (1)
80else if (bool.TryParse(meterSection.Value, out var meterEnabled))
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.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)
111if (!string.IsNullOrWhiteSpace(namedSection.Value)) 193var value = section.Value;