252 references to KnownConfigNames
Aspire.Hosting (87)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
351var cliPidString = configuration[KnownConfigNames.CliProcessId];
Backchannel\BackchannelService.cs (2)
26public bool IsBackchannelExpected => configuration.GetValue<string>(KnownConfigNames.UnixSocketPath) is {}; 36var unixSocketPath = configuration.GetValue<string>(KnownConfigNames.UnixSocketPath);
Cli\CliOrphanDetector.cs (2)
50if (configuration[KnownConfigNames.CliProcessId] is not { } pidString || !int.TryParse(pidString, out var pid)) 62if (configuration[KnownConfigNames.CliProcessStarted] is { } startTimeString &&
Dashboard\DashboardEventHandlers.cs (5)
57KnownConfigNames.DashboardCorsAllowedOrigins // Set on the dashboard's Dashboard:Otlp:Cors type 512var showDashboardResources = configuration.GetBool(KnownConfigNames.ShowDashboardResources, KnownConfigNames.Legacy.ShowDashboardResources); 565var allowedOrigins = configuration.GetString(KnownConfigNames.DashboardCorsAllowedOrigins, KnownConfigNames.Legacy.DashboardCorsAllowedOrigins);
Dashboard\DashboardOptions.cs (9)
30options.DashboardUrl = configuration[KnownConfigNames.AspNetCoreUrls]; 33options.OtlpGrpcEndpointUrl = configuration.GetString(KnownConfigNames.DashboardOtlpGrpcEndpointUrl, KnownConfigNames.Legacy.DashboardOtlpGrpcEndpointUrl); 34options.OtlpHttpEndpointUrl = configuration.GetString(KnownConfigNames.DashboardOtlpHttpEndpointUrl, KnownConfigNames.Legacy.DashboardOtlpHttpEndpointUrl); 35options.McpEndpointUrl = configuration[KnownConfigNames.DashboardMcpEndpointUrl]; 56builder.AddError($"Failed to configure dashboard resource because {KnownConfigNames.AspNetCoreUrls} environment variable was not set."); 61builder.AddError($"Failed to configure dashboard resource because {KnownConfigNames.DashboardOtlpGrpcEndpointUrl} and {KnownConfigNames.DashboardOtlpHttpEndpointUrl} environment variables are not set. At least one OTLP endpoint must be provided.");
Dashboard\TransportOptionsValidator.cs (20)
23var applicationUrls = configuration[KnownConfigNames.AspNetCoreUrls]; 26return ValidateOptionsResult.Fail($"AppHost does not have applicationUrl in launch profile, or {KnownConfigNames.AspNetCoreUrls} environment variable set."); 38return ValidateOptionsResult.Fail($"The 'applicationUrl' setting must be an https address unless the '{KnownConfigNames.AllowUnsecuredTransport}' environment variable is set to true. This configuration is commonly set in the launch profile. See https://aka.ms/dotnet/aspire/allowunsecuredtransport for more details."); 42var dashboardOtlpGrpcEndpointUrl = configuration.GetString(KnownConfigNames.DashboardOtlpGrpcEndpointUrl, KnownConfigNames.Legacy.DashboardOtlpGrpcEndpointUrl); 43var dashboardOtlpHttpEndpointUrl = configuration.GetString(KnownConfigNames.DashboardOtlpHttpEndpointUrl, KnownConfigNames.Legacy.DashboardOtlpHttpEndpointUrl); 46return ValidateOptionsResult.Fail($"AppHost does not have the {KnownConfigNames.DashboardOtlpGrpcEndpointUrl} or {KnownConfigNames.DashboardOtlpHttpEndpointUrl} settings defined. At least one OTLP endpoint must be provided."); 49if (!TryValidateEndpointUrl(KnownConfigNames.DashboardOtlpGrpcEndpointUrl, dashboardOtlpGrpcEndpointUrl, out var resultGrpc)) 53if (!TryValidateEndpointUrl(KnownConfigNames.DashboardOtlpHttpEndpointUrl, dashboardOtlpHttpEndpointUrl, out var resultHttp)) 59var dashboardMcpEndpointUrl = configuration[KnownConfigNames.DashboardMcpEndpointUrl]; 60if (!TryValidateEndpointUrl(KnownConfigNames.DashboardMcpEndpointUrl, dashboardMcpEndpointUrl, out var resultMcp)) 66var resourceServiceEndpointUrl = configuration.GetString(KnownConfigNames.ResourceServiceEndpointUrl, KnownConfigNames.Legacy.ResourceServiceEndpointUrl); 69return ValidateOptionsResult.Fail($"AppHost does not have the {KnownConfigNames.ResourceServiceEndpointUrl} setting defined."); 74return ValidateOptionsResult.Fail($"The {KnownConfigNames.ResourceServiceEndpointUrl} setting with a value of '{resourceServiceEndpointUrl}' could not be parsed as a URI."); 79return ValidateOptionsResult.Fail($"The '{KnownConfigNames.ResourceServiceEndpointUrl}' setting must be an https address unless the '{KnownConfigNames.AllowUnsecuredTransport}' environment variable is set to true. This configuration is commonly set in the launch profile. See https://aka.ms/dotnet/aspire/allowunsecuredtransport for more details."); 110result = ValidateOptionsResult.Fail($"The '{configName}' setting must be an https address unless the '{KnownConfigNames.AllowUnsecuredTransport}' environment variable is set to true. This configuration is commonly set in the launch profile. See https://aka.ms/dotnet/aspire/allowunsecuredtransport for more details.");
Dcp\DcpExecutor.cs (2)
1482projectLaunchConfiguration.Mode = _configuration[KnownConfigNames.DebugSessionRunMode] 1884var mode = _configuration[KnownConfigNames.DebugSessionRunMode] ?? ExecutableLaunchMode.NoDebug;
Dcp\DcpOptions.cs (7)
199options.ContainerRuntime = configuration.GetString(KnownConfigNames.ContainerRuntime, KnownConfigNames.Legacy.ContainerRuntime); 215options.DependencyCheckTimeout = configuration.GetValue(KnownConfigNames.DependencyCheckTimeout, KnownConfigNames.Legacy.DependencyCheckTimeout, options.DependencyCheckTimeout); 228options.ServiceStartupWatchTimeout = configuration.GetValue(KnownConfigNames.ServiceStartupWatchTimeout, KnownConfigNames.Legacy.ServiceStartupWatchTimeout, options.ServiceStartupWatchTimeout); 234options.EnableAspireContainerTunnel = configuration.GetValue(KnownConfigNames.EnableContainerTunnel, options.EnableAspireContainerTunnel);
DeveloperCertificateService.cs (2)
24TrustCertificate = configuration.GetBool(KnownConfigNames.DeveloperCertificateDefaultTrust) ?? 151UseForHttps = (configuration.GetBool(KnownConfigNames.DeveloperCertificateDefaultHttpsTermination) ??
DistributedApplication.cs (2)
249if (Environment.GetEnvironmentVariable(KnownConfigNames.WaitForDebugger) == "true") 254if (Environment.GetEnvironmentVariable(KnownConfigNames.WaitForDebuggerTimeout) is string timeoutString && int.TryParse(timeoutString, out var timeoutSeconds))
DistributedApplicationBuilder.cs (9)
191var configuredUserSecretsId = _innerBuilder.Configuration[KnownConfigNames.AspireUserSecretsId]; 420if (_innerBuilder.Configuration.GetString(KnownConfigNames.DashboardFrontendBrowserToken, 421KnownConfigNames.Legacy.DashboardFrontendBrowserToken, fallbackOnEmpty: true) is not { } browserToken) 435var apiKey = _innerBuilder.Configuration.GetString(KnownConfigNames.DashboardResourceServiceClientApiKey, 436KnownConfigNames.Legacy.DashboardResourceServiceClientApiKey, fallbackOnEmpty: true); 633if (Configuration.GetBool(KnownConfigNames.AllowUnsecuredTransport) is { } allowUnsecuredTransport) 641return configuration.GetBool(KnownConfigNames.DashboardUnsecuredAllowAnonymous, KnownConfigNames.Legacy.DashboardUnsecuredAllowAnonymous) ?? false; 787var configuredUserSecretsId = configuration[KnownConfigNames.AspireUserSecretsId];
InteractionService.cs (1)
46var interactivityEnabled = _configuration[KnownConfigNames.InteractivityEnabled];
src\Shared\DashboardConfigNames.cs (17)
8public static readonly ConfigName DashboardFrontendUrlName = new(KnownConfigNames.AspNetCoreUrls); 10public static readonly ConfigName DashboardOtlpGrpcUrlName = new(KnownConfigNames.DashboardOtlpGrpcEndpointUrl); 11public static readonly ConfigName DashboardOtlpHttpUrlName = new(KnownConfigNames.DashboardOtlpHttpEndpointUrl); 12public static readonly ConfigName DashboardMcpUrlName = new(KnownConfigNames.DashboardMcpEndpointUrl); 13public static readonly ConfigName DashboardUnsecuredAllowAnonymousName = new(KnownConfigNames.DashboardUnsecuredAllowAnonymous); 14public static readonly ConfigName DashboardConfigFilePathName = new(KnownConfigNames.DashboardConfigFilePath); 15public static readonly ConfigName DashboardFileConfigDirectoryName = new(KnownConfigNames.DashboardFileConfigDirectory); 16public static readonly ConfigName DashboardAIDisabledName = new(KnownConfigNames.DashboardAIDisabled); 17public static readonly ConfigName DashboardAspireApiEnabledName = new(KnownConfigNames.DashboardApiEnabled); 18public static readonly ConfigName ResourceServiceUrlName = new(KnownConfigNames.ResourceServiceEndpointUrl); 19public static readonly ConfigName ForwardedHeaders = new(KnownConfigNames.DashboardForwardedHeadersEnabled); 58public static readonly ConfigName DashboardOtlpGrpcUrlName = new(KnownConfigNames.Legacy.DashboardOtlpGrpcEndpointUrl); 59public static readonly ConfigName DashboardOtlpHttpUrlName = new(KnownConfigNames.Legacy.DashboardOtlpHttpEndpointUrl); 60public static readonly ConfigName DashboardUnsecuredAllowAnonymousName = new(KnownConfigNames.Legacy.DashboardUnsecuredAllowAnonymous); 61public static readonly ConfigName DashboardConfigFilePathName = new(KnownConfigNames.Legacy.DashboardConfigFilePath); 62public static readonly ConfigName DashboardFileConfigDirectoryName = new(KnownConfigNames.Legacy.DashboardFileConfigDirectory); 63public static readonly ConfigName ResourceServiceUrlName = new(KnownConfigNames.Legacy.ResourceServiceEndpointUrl);
src\Shared\LocaleHelpers.cs (2)
54var localeOverride = configuration[KnownConfigNames.LocaleOverride]; 58localeOverride = configuration[KnownConfigNames.DotnetCliUiLanguage];
src\Shared\OtlpEndpointResolver.cs (4)
25var dashboardOtlpGrpcUrl = configuration.GetString(KnownConfigNames.DashboardOtlpGrpcEndpointUrl, KnownConfigNames.Legacy.DashboardOtlpGrpcEndpointUrl); 26var dashboardOtlpHttpUrl = configuration.GetString(KnownConfigNames.DashboardOtlpHttpEndpointUrl, KnownConfigNames.Legacy.DashboardOtlpHttpEndpointUrl);
Utils\ExtensionUtils.cs (1)
30if (configuration[KnownConfigNames.DebugSessionInfo] is { } debugSessionInfoJson && JsonSerializer.Deserialize<RunSessionInfo>(debugSessionInfoJson) is { } debugSessionInfo)
VersionChecking\VersionCheckService.cs (1)
56if (!_interactionService.IsAvailable || _executionContext.IsPublishMode || _configuration.GetBool(KnownConfigNames.VersionCheckDisabled, defaultValue: false))
Aspire.Hosting.Tests (165)
Backchannel\AppHostBackchannelTests.cs (2)
21builder.Configuration[KnownConfigNames.UnixSocketPath] = UnixSocketHelper.GetBackchannelSocketPath(); 57builder.Configuration[KnownConfigNames.UnixSocketPath] = UnixSocketHelper.GetBackchannelSocketPath();
Backchannel\Exec\ExecTestsBase.cs (1)
64builder.Configuration[KnownConfigNames.UnixSocketPath] = UnixSocketHelper.GetBackchannelSocketPath();
ContainerTunnelTests.cs (2)
21builder.Configuration[KnownConfigNames.EnableContainerTunnel] = "true"; 55builder.Configuration[KnownConfigNames.EnableContainerTunnel] = "true";
Dashboard\DashboardOptionsTests.cs (2)
27{ KnownConfigNames.AspNetCoreUrls, "http://localhost:8080" }, 28{ KnownConfigNames.DashboardOtlpGrpcEndpointUrl, "http://localhost:4317" }
Dashboard\DashboardResourceTests.cs (35)
23[InlineData(KnownConfigNames.ShowDashboardResources)] 24[InlineData(KnownConfigNames.Legacy.ShowDashboardResources)] 84[InlineData(KnownConfigNames.DashboardOtlpGrpcEndpointUrl)] 85[InlineData(KnownConfigNames.Legacy.DashboardOtlpGrpcEndpointUrl)] 100[KnownConfigNames.DashboardMcpEndpointUrl] = "http://localhost" 124Assert.Equal(KnownConfigNames.DashboardApiEnabled, e.Key); 129Assert.Equal(KnownConfigNames.DashboardMcpEndpointUrl, e.Key); 134Assert.Equal(KnownConfigNames.DashboardOtlpGrpcEndpointUrl, e.Key); 139Assert.Equal(KnownConfigNames.ResourceServiceEndpointUrl, e.Key); 149Assert.Equal(KnownConfigNames.AspNetCoreUrls, e.Key); 216[KnownConfigNames.DashboardOtlpGrpcEndpointUrl] = "http://localhost", 217[KnownConfigNames.DashboardMcpEndpointUrl] = mcpEndpointUrl 276[InlineData(KnownConfigNames.DashboardOtlpGrpcEndpointUrl)] 277[InlineData(KnownConfigNames.Legacy.DashboardOtlpGrpcEndpointUrl)] 291[KnownConfigNames.AspNetCoreUrls] = "http://localhost", 317[InlineData(KnownConfigNames.DashboardOtlpGrpcEndpointUrl)] 318[InlineData(KnownConfigNames.Legacy.DashboardOtlpGrpcEndpointUrl)] 332[KnownConfigNames.AspNetCoreUrls] = "http://localhost", 353[InlineData(KnownConfigNames.DashboardOtlpGrpcEndpointUrl)] 354[InlineData(KnownConfigNames.Legacy.DashboardOtlpGrpcEndpointUrl)] 368[KnownConfigNames.AspNetCoreUrls] = "http://localhost", 388[InlineData("*", KnownConfigNames.DashboardOtlpHttpEndpointUrl, KnownConfigNames.DashboardCorsAllowedOrigins)] 389[InlineData(null, KnownConfigNames.Legacy.DashboardOtlpHttpEndpointUrl, KnownConfigNames.Legacy.DashboardCorsAllowedOrigins)] 405[KnownConfigNames.AspNetCoreUrls] = "http://localhost", 434[InlineData("*", KnownConfigNames.DashboardOtlpGrpcEndpointUrl, KnownConfigNames.DashboardCorsAllowedOrigins)] 435[InlineData(null, KnownConfigNames.Legacy.DashboardOtlpGrpcEndpointUrl, KnownConfigNames.Legacy.DashboardCorsAllowedOrigins)] 451[KnownConfigNames.AspNetCoreUrls] = "http://localhost", 485[KnownConfigNames.AspNetCoreUrls] = "https://localhost", 486[KnownConfigNames.DashboardOtlpGrpcEndpointUrl] = "http://localhost" 677[KnownConfigNames.AspNetCoreUrls] = "http://localhost;https://localhost", 678[KnownConfigNames.DashboardOtlpGrpcEndpointUrl] = "http://localhost"
Dashboard\TransportOptionsValidatorTests.cs (64)
21config[KnownConfigNames.AspNetCoreUrls] = "http://localhost:1234"; 27$"The 'applicationUrl' setting must be an https address unless the '{KnownConfigNames.AllowUnsecuredTransport}' environment variable is set to true. This configuration is commonly set in the launch profile. See https://aka.ms/dotnet/aspire/allowunsecuredtransport for more details.", 41config[KnownConfigNames.AspNetCoreUrls] = "http://localhost:1234"; 59config[KnownConfigNames.AspNetCoreUrls] = "http://localhost:1234"; 77config[KnownConfigNames.AspNetCoreUrls] = "http://localhost:1234"; 94config[KnownConfigNames.AspNetCoreUrls] = invalidUrl; 119$"AppHost does not have applicationUrl in launch profile, or {KnownConfigNames.AspNetCoreUrls} environment variable set.", 133config[KnownConfigNames.AspNetCoreUrls] = string.Empty; 139$"AppHost does not have applicationUrl in launch profile, or {KnownConfigNames.AspNetCoreUrls} environment variable set.", 145[InlineData(KnownConfigNames.ResourceServiceEndpointUrl)] 146[InlineData(KnownConfigNames.Legacy.ResourceServiceEndpointUrl)] 155config[KnownConfigNames.AspNetCoreUrls] = "https://localhost:1234"; 157config[KnownConfigNames.DashboardOtlpGrpcEndpointUrl] = "https://localhost:1236"; 163$"AppHost does not have the {KnownConfigNames.ResourceServiceEndpointUrl} setting defined.", 169[InlineData(KnownConfigNames.DashboardOtlpGrpcEndpointUrl)] 170[InlineData(KnownConfigNames.Legacy.DashboardOtlpGrpcEndpointUrl)] 179config[KnownConfigNames.AspNetCoreUrls] = "https://localhost:1234"; 180config[KnownConfigNames.ResourceServiceEndpointUrl] = "https://localhost:1235"; 187$"AppHost does not have the {KnownConfigNames.DashboardOtlpGrpcEndpointUrl} or {KnownConfigNames.DashboardOtlpHttpEndpointUrl} settings defined. At least one OTLP endpoint must be provided.", 193[InlineData(KnownConfigNames.ResourceServiceEndpointUrl)] 194[InlineData(KnownConfigNames.Legacy.ResourceServiceEndpointUrl)] 204config[KnownConfigNames.AspNetCoreUrls] = "https://localhost:1234"; 206config[KnownConfigNames.DashboardOtlpGrpcEndpointUrl] = "https://localhost:1236"; 212$"The {KnownConfigNames.ResourceServiceEndpointUrl} setting with a value of '{invalidUrl}' could not be parsed as a URI.", 218[InlineData(KnownConfigNames.DashboardOtlpGrpcEndpointUrl, KnownConfigNames.DashboardOtlpGrpcEndpointUrl)] 219[InlineData(KnownConfigNames.DashboardOtlpHttpEndpointUrl, KnownConfigNames.DashboardOtlpHttpEndpointUrl)] 220[InlineData(KnownConfigNames.Legacy.DashboardOtlpGrpcEndpointUrl, KnownConfigNames.DashboardOtlpGrpcEndpointUrl)] 221[InlineData(KnownConfigNames.Legacy.DashboardOtlpHttpEndpointUrl, KnownConfigNames.DashboardOtlpHttpEndpointUrl)] 231config[KnownConfigNames.AspNetCoreUrls] = "https://localhost:1234"; 232config[KnownConfigNames.ResourceServiceEndpointUrl] = "https://localhost:1235"; 245[InlineData(KnownConfigNames.DashboardOtlpGrpcEndpointUrl)] 246[InlineData(KnownConfigNames.DashboardOtlpHttpEndpointUrl)] 255config[KnownConfigNames.AspNetCoreUrls] = "https://localhost:1234"; 256config[KnownConfigNames.ResourceServiceEndpointUrl] = "https://localhost:1235"; 263$"The '{otlpEndpointConfigName}' setting must be an https address unless the '{KnownConfigNames.AllowUnsecuredTransport}' environment variable is set to true. This configuration is commonly set in the launch profile. See https://aka.ms/dotnet/aspire/allowunsecuredtransport for more details.", 269[InlineData(KnownConfigNames.ResourceServiceEndpointUrl)] 270[InlineData(KnownConfigNames.Legacy.ResourceServiceEndpointUrl)] 279config[KnownConfigNames.AspNetCoreUrls] = "https://localhost:1234"; 281config[KnownConfigNames.DashboardOtlpGrpcEndpointUrl] = "https://localhost:1236"; 287$"The '{KnownConfigNames.ResourceServiceEndpointUrl}' setting must be an https address unless the '{KnownConfigNames.AllowUnsecuredTransport}' environment variable is set to true. This configuration is commonly set in the launch profile. See https://aka.ms/dotnet/aspire/allowunsecuredtransport for more details.", 301config[KnownConfigNames.AspNetCoreUrls] = "http://localhost:1234"; 317config[KnownConfigNames.AspNetCoreUrls] = "https://localhost:1234"; 325[InlineData(KnownConfigNames.DashboardOtlpHttpEndpointUrl, KnownConfigNames.ResourceServiceEndpointUrl)] 326[InlineData(KnownConfigNames.Legacy.DashboardOtlpHttpEndpointUrl, KnownConfigNames.ResourceServiceEndpointUrl)] 327[InlineData(KnownConfigNames.DashboardOtlpHttpEndpointUrl, KnownConfigNames.Legacy.ResourceServiceEndpointUrl)] 328[InlineData(KnownConfigNames.Legacy.DashboardOtlpHttpEndpointUrl, KnownConfigNames.Legacy.ResourceServiceEndpointUrl)] 337config[KnownConfigNames.AspNetCoreUrls] = "https://localhost:1234"; 357config[KnownConfigNames.AspNetCoreUrls] = bindingAddress; 358config[KnownConfigNames.DashboardOtlpGrpcEndpointUrl] = "https://localhost:1236"; 359config[KnownConfigNames.ResourceServiceEndpointUrl] = "https://localhost:1237"; 369[InlineData(KnownConfigNames.DashboardOtlpGrpcEndpointUrl)] 370[InlineData(KnownConfigNames.DashboardOtlpHttpEndpointUrl)] 381config[KnownConfigNames.AspNetCoreUrls] = "https://localhost:1234"; 383config[KnownConfigNames.ResourceServiceEndpointUrl] = "https://localhost:1237";
Dcp\DcpExecutorTests.cs (41)
1404[KnownConfigNames.DashboardOtlpGrpcEndpointUrl] = "http://localhost", 1439[KnownConfigNames.DashboardOtlpGrpcEndpointUrl] = "http://localhost", 1443[KnownConfigNames.DebugSessionRunMode] = runMode 1472[KnownConfigNames.DashboardOtlpGrpcEndpointUrl] = "http://localhost", 1508[KnownConfigNames.DashboardOtlpGrpcEndpointUrl] = "http://localhost", 1548[KnownConfigNames.DashboardOtlpGrpcEndpointUrl] = "http://localhost", 1579[KnownConfigNames.DashboardOtlpGrpcEndpointUrl] = "http://localhost", 1610[KnownConfigNames.DashboardOtlpGrpcEndpointUrl] = "http://localhost", 1640[KnownConfigNames.DashboardOtlpGrpcEndpointUrl] = "http://localhost", 1669[KnownConfigNames.DashboardOtlpGrpcEndpointUrl] = "http://localhost", 1702[KnownConfigNames.DebugSessionInfo] = JsonSerializer.Serialize(new RunSessionInfo { ProtocolsSupported = ["test"], SupportedLaunchConfigurations = ["test"] }), 1703[KnownConfigNames.ExtensionEndpoint] = "http://localhost:1234", 1704[KnownConfigNames.DebugSessionRunMode] = "Debug" 1753[KnownConfigNames.DebugSessionInfo] = JsonSerializer.Serialize(new RunSessionInfo { ProtocolsSupported = ["test"], SupportedLaunchConfigurations = ["other_executable"] }), 1754[KnownConfigNames.ExtensionEndpoint] = "http://localhost:1234", 1791[KnownConfigNames.ExtensionEndpoint] = null 1831[KnownConfigNames.ExtensionEndpoint] = "http://localhost:1234" 1867[KnownConfigNames.DebugSessionInfo] = "{invalid json}", 1868[KnownConfigNames.ExtensionEndpoint] = "http://localhost:1234" 1909[KnownConfigNames.DebugSessionInfo] = JsonSerializer.Serialize(runSessionInfo), 1910[KnownConfigNames.ExtensionEndpoint] = "http://localhost:1234" 1951[KnownConfigNames.DebugSessionInfo] = JsonSerializer.Serialize(runSessionInfo), 1952[KnownConfigNames.ExtensionEndpoint] = "http://localhost:1234" 1993[KnownConfigNames.DebugSessionInfo] = JsonSerializer.Serialize(runSessionInfo), 1994[KnownConfigNames.ExtensionEndpoint] = "http://localhost:1234" 2030[KnownConfigNames.ExtensionEndpoint] = "http://localhost:1234" 2067[KnownConfigNames.DebugSessionInfo] = "{invalid json}", 2068[KnownConfigNames.ExtensionEndpoint] = "http://localhost:1234" 2110[KnownConfigNames.DebugSessionInfo] = JsonSerializer.Serialize(runSessionInfo), 2111[KnownConfigNames.ExtensionEndpoint] = "http://localhost:1234" 2191[KnownConfigNames.ExtensionEndpoint] = "http://localhost:1234" 2362[KnownConfigNames.DebugSessionInfo] = JsonSerializer.Serialize(runSessionInfo), 2363[KnownConfigNames.ExtensionEndpoint] = "http://localhost:1234" 2408[KnownConfigNames.DebugSessionInfo] = JsonSerializer.Serialize(new RunSessionInfo { ProtocolsSupported = ["coreclr"], SupportedLaunchConfigurations = ["azure-functions"] }), 2409[KnownConfigNames.ExtensionEndpoint] = "http://localhost:1234", 2410[KnownConfigNames.DebugSessionRunMode] = "Debug" 2464[KnownConfigNames.DebugSessionInfo] = JsonSerializer.Serialize(new RunSessionInfo { ProtocolsSupported = ["coreclr"], SupportedLaunchConfigurations = ["azure-functions"] }), 2465[KnownConfigNames.ExtensionEndpoint] = "http://localhost:1234" 2513[KnownConfigNames.DebugSessionInfo] = JsonSerializer.Serialize(new RunSessionInfo { ProtocolsSupported = ["coreclr"], SupportedLaunchConfigurations = ["project"] }), 2514[KnownConfigNames.ExtensionEndpoint] = "http://localhost:1234" 2555[KnownConfigNames.DashboardOtlpGrpcEndpointUrl] = "http://localhost",
DistributedApplicationBuilderTests.cs (5)
133Args = [$"{KnownConfigNames.AspireUserSecretsId}={userSecretsId}"], 175configuration[KnownConfigNames.AspireUserSecretsId] = configuredUserSecretsId; 202configuration[KnownConfigNames.AspireUserSecretsId] = ""; 208[InlineData(KnownConfigNames.DashboardUnsecuredAllowAnonymous)] 209[InlineData(KnownConfigNames.Legacy.DashboardUnsecuredAllowAnonymous)]
DistributedApplicationTests.cs (9)
1197$"{KnownConfigNames.AspNetCoreUrls}=https://localhost:0;http://localhost:0", 1198$"{KnownConfigNames.DashboardOtlpGrpcEndpointUrl}=http://localhost:0" 1221[InlineData(KnownConfigNames.DashboardFrontendBrowserToken)] 1222[InlineData(KnownConfigNames.Legacy.DashboardFrontendBrowserToken)] 1228$"{KnownConfigNames.AspNetCoreUrls}=http://localhost:0", 1229$"{KnownConfigNames.DashboardOtlpGrpcEndpointUrl}=http://localhost:0", 1265$"{KnownConfigNames.AspNetCoreUrls}=http://localhost:0", 1266$"{KnownConfigNames.DashboardOtlpGrpcEndpointUrl}=http://localhost:0", 1267$"{KnownConfigNames.DashboardUnsecuredAllowAnonymous}=true"
ProjectResourceTests.cs (3)
118[InlineData(KnownConfigNames.DashboardOtlpGrpcEndpointUrl)] 119[InlineData(KnownConfigNames.Legacy.DashboardOtlpGrpcEndpointUrl)] 233var appBuilder = CreateBuilder(args: [$"{KnownConfigNames.DashboardUnsecuredAllowAnonymous}={value}"], DistributedApplicationOperation.Run);
VersionChecking\VersionCheckServiceTests.cs (1)
55[KnownConfigNames.VersionCheckDisabled] = "true"