10 references to GetBool
Aspire.Dashboard (10)
Configuration\PostConfigureDashboardOptions.cs (3)
119
if (_configuration.
GetBool
(DashboardConfigNames.DashboardAspireApiDisabledName.ConfigKey) is { } apiDisabled)
123
else if (_configuration.
GetBool
(DashboardConfigNames.DashboardAspireApiEnabledName.ConfigKey) is { } apiEnabled)
132
if (_configuration.
GetBool
(DashboardConfigNames.Legacy.DashboardOtlpSuppressUnsecuredTelemetryMessageName.ConfigKey) is { } suppressUnsecuredTelemetryMessage)
DashboardWebApplication.cs (4)
270
if (builder.Configuration.
GetBool
(DashboardConfigNames.ForwardedHeaders.ConfigKey) ?? false)
498
if (builder.Configuration.
GetBool
(DashboardConfigNames.ForwardedHeaders.ConfigKey) ?? false)
584
var suppressBrowserToken = _app.Configuration.
GetBool
(KnownConfigNames.DashboardSuppressBrowserTokenInOutput) ?? false;
594
var isContainer = _app.Configuration.
GetBool
("DOTNET_RUNNING_IN_CONTAINER") ?? false;
src\Shared\IConfigurationExtensions.cs (3)
44
var value = configuration.
GetBool
(primaryKey) ?? configuration.
GetBool
(secondaryKey);
106
return configuration.
GetBool
(key) ?? defaultValue;