36 references to AspNetCoreUrls
Aspire.Hosting (5)
Dashboard\DashboardOptions.cs (2)
30options.DashboardUrl = configuration[KnownConfigNames.AspNetCoreUrls]; 56builder.AddError($"Failed to configure dashboard resource because {KnownConfigNames.AspNetCoreUrls} environment variable was not set.");
Dashboard\TransportOptionsValidator.cs (2)
23var applicationUrls = configuration[KnownConfigNames.AspNetCoreUrls]; 26return ValidateOptionsResult.Fail($"AppHost does not have applicationUrl in launch profile, or {KnownConfigNames.AspNetCoreUrls} environment variable set.");
src\Shared\DashboardConfigNames.cs (1)
8public static readonly ConfigName DashboardFrontendUrlName = new(KnownConfigNames.AspNetCoreUrls);
Aspire.Hosting.Tests (31)
Dashboard\DashboardOptionsTests.cs (1)
27{ KnownConfigNames.AspNetCoreUrls, "http://localhost:8080" },
Dashboard\DashboardResourceTests.cs (8)
149Assert.Equal(KnownConfigNames.AspNetCoreUrls, e.Key); 291[KnownConfigNames.AspNetCoreUrls] = "http://localhost", 332[KnownConfigNames.AspNetCoreUrls] = "http://localhost", 368[KnownConfigNames.AspNetCoreUrls] = "http://localhost", 405[KnownConfigNames.AspNetCoreUrls] = "http://localhost", 451[KnownConfigNames.AspNetCoreUrls] = "http://localhost", 485[KnownConfigNames.AspNetCoreUrls] = "https://localhost", 677[KnownConfigNames.AspNetCoreUrls] = "http://localhost;https://localhost",
Dashboard\TransportOptionsValidatorTests.cs (19)
21config[KnownConfigNames.AspNetCoreUrls] = "http://localhost:1234"; 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.", 155config[KnownConfigNames.AspNetCoreUrls] = "https://localhost:1234"; 179config[KnownConfigNames.AspNetCoreUrls] = "https://localhost:1234"; 204config[KnownConfigNames.AspNetCoreUrls] = "https://localhost:1234"; 231config[KnownConfigNames.AspNetCoreUrls] = "https://localhost:1234"; 255config[KnownConfigNames.AspNetCoreUrls] = "https://localhost:1234"; 279config[KnownConfigNames.AspNetCoreUrls] = "https://localhost:1234"; 301config[KnownConfigNames.AspNetCoreUrls] = "http://localhost:1234"; 317config[KnownConfigNames.AspNetCoreUrls] = "https://localhost:1234"; 337config[KnownConfigNames.AspNetCoreUrls] = "https://localhost:1234"; 357config[KnownConfigNames.AspNetCoreUrls] = bindingAddress; 381config[KnownConfigNames.AspNetCoreUrls] = "https://localhost:1234";
DistributedApplicationTests.cs (3)
1197$"{KnownConfigNames.AspNetCoreUrls}=https://localhost:0;http://localhost:0", 1228$"{KnownConfigNames.AspNetCoreUrls}=http://localhost:0", 1265$"{KnownConfigNames.AspNetCoreUrls}=http://localhost:0",