29 references to DashboardConfigNames
Aspire.Dashboard (29)
Configuration\DashboardOptions.cs (4)
110
errorMessage = $"Neither OTLP/gRPC or OTLP/HTTP endpoint URLs are configured. Specify either a {
DashboardConfigNames
.DashboardOtlpGrpcUrlName.EnvVarName} or {
DashboardConfigNames
.DashboardOtlpHttpUrlName.EnvVarName} value.";
128
errorMessage = $"CORS configured without an OTLP HTTP endpoint. Either remove CORS configuration or specify a {
DashboardConfigNames
.DashboardOtlpHttpUrlName.EnvVarName} value.";
182
errorMessage = $"One or more frontend endpoint URLs are not configured. Specify an {
DashboardConfigNames
.DashboardFrontendUrlName.ConfigKey} value.";
Configuration\PostConfigureDashboardOptions.cs (6)
30
if (_configuration[
DashboardConfigNames
.DashboardOtlpGrpcUrlName.ConfigKey] is { Length: > 0 } otlpGrpcUrl)
35
if (_configuration[
DashboardConfigNames
.DashboardOtlpHttpUrlName.ConfigKey] is { Length: > 0 } otlpHttpUrl)
39
if (_configuration[
DashboardConfigNames
.DashboardFrontendUrlName.ConfigKey] is { Length: > 0 } frontendUrls)
43
if (_configuration[
DashboardConfigNames
.ResourceServiceUrlName.ConfigKey] is { Length: > 0 } resourceServiceUrl)
47
if (_configuration.GetBool(
DashboardConfigNames
.DashboardUnsecuredAllowAnonymousName.ConfigKey) ?? false)
63
_configuration[
DashboardConfigNames
.DashboardFrontendBrowserTokenName.ConfigKey] = token;
Configuration\ValidateDashboardOptions.cs (16)
47
errorMessages.Add($"BrowserToken is required when frontend authentication mode is browser token. Specify a {
DashboardConfigNames
.DashboardFrontendBrowserTokenName.ConfigKey} value.");
51
errorMessages.Add($"Frontend endpoint authentication is not configured. Either specify {
DashboardConfigNames
.DashboardUnsecuredAllowAnonymousName.ConfigKey}=true, or specify {
DashboardConfigNames
.DashboardFrontendAuthModeName.ConfigKey}. Possible values: {string.Join(", ", typeof(FrontendAuthMode).GetEnumNames())}");
60
errorMessages.Add($"{
DashboardConfigNames
.DashboardFrontendMaxConsoleLogCountName.ConfigKey} must be greater than zero.");
75
errorMessages.Add($"PrimaryApiKey is required when OTLP authentication mode is API key. Specify a {
DashboardConfigNames
.DashboardOtlpPrimaryApiKeyName.ConfigKey} value.");
84
errorMessages.Add($"Thumbprint on allow certificate rule is not configured. Specify a {
DashboardConfigNames
.DashboardOtlpAllowedCertificatesName.ConfigKey}:{i}:Thumbprint value.");
89
errorMessages.Add($"OTLP endpoint authentication is not configured. Either specify {
DashboardConfigNames
.DashboardUnsecuredAllowAnonymousName.ConfigKey}=true, or specify {
DashboardConfigNames
.DashboardOtlpAuthModeName.ConfigKey}. Possible values: {string.Join(", ", typeof(OtlpAuthMode).GetEnumNames())}");
112
errorMessages.Add($"{
DashboardConfigNames
.ResourceServiceClientAuthModeName.ConfigKey} is \"{nameof(ResourceClientAuthMode.ApiKey)}\", but no {
DashboardConfigNames
.ResourceServiceClientApiKeyName.ConfigKey} is configured.");
121
errorMessages.Add($"{
DashboardConfigNames
.ResourceServiceClientCertificateSourceName.ConfigKey} is \"File\", but no {
DashboardConfigNames
.ResourceServiceClientCertificateFilePathName.ConfigKey} is configured.");
127
errorMessages.Add($"{
DashboardConfigNames
.ResourceServiceClientCertificateSourceName.ConfigKey} is \"KeyStore\", but no {
DashboardConfigNames
.ResourceServiceClientCertificateSubjectName.ConfigKey} is configured.");
131
errorMessages.Add($"The resource service client is configured to use certificates, but no certificate source is specified. Specify {
DashboardConfigNames
.ResourceServiceClientCertificateSourceName.ConfigKey}. Possible values: {string.Join(", ", typeof(DashboardClientCertificateSource).GetEnumNames())}");
139
errorMessages.Add($"Resource service client authentication is not configured. Specify {
DashboardConfigNames
.ResourceServiceClientAuthModeName.ConfigKey}. Possible values: {string.Join(", ", typeof(ResourceClientAuthMode).GetEnumNames())}");
DashboardWebApplication.cs (2)
147
if (builder.Configuration[
DashboardConfigNames
.DashboardConfigFilePathName.ConfigKey] is { Length: > 0 } configFilePath)
153
if (builder.Configuration[
DashboardConfigNames
.DashboardFileConfigDirectoryName.ConfigKey] is { Length: > 0 } fileConfigDirectory)
ResourceService\DashboardClient.cs (1)
94
_logger.LogDebug($"{
DashboardConfigNames
.ResourceServiceUrlName.ConfigKey} is not specified. Dashboard client services are unavailable.");