12 references to Urls
Aspire.Hosting (4)
ProjectResourceBuilderExtensions.cs (1)
474
var url = context.
Urls
.FirstOrDefault(u => string.Equals(u.Endpoint?.EndpointName, endpoint.Name, StringComparisons.EndpointAnnotationName));
ResourceBuilderExtensions.cs (3)
978
c.
Urls
.Add(new() { Endpoint = endpoint, Url = urlValue, DisplayText = displayText });
1026
var urlForEndpoint = context.
Urls
.FirstOrDefault(u => u.Endpoint?.EndpointName == endpointName);
1076
context.
Urls
.Add(url);
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBExtensions.cs (1)
355
var url = context.
Urls
.FirstOrDefault(u => u.Endpoint?.EndpointName == KnownUrls.DataExplorer.EndpointName);
Aspire.Hosting.Tests (5)
WithUrlsTests.cs (5)
141
.WithUrls(c => c.
Urls
.Add(new() { Url = "https://example.com", DisplayText = "Example" }))
564
c.
Urls
.Add(new() { Url = "http://example.com/", DisplayLocation = UrlDisplayLocation.SummaryAndDetails });
565
c.
Urls
.Add(new() { Url = "http://example.com/internal", DisplayLocation = UrlDisplayLocation.DetailsOnly });
566
c.
Urls
.Add(new() { Url = "http://example.com/out-of-range", DisplayLocation = (UrlDisplayLocation)100 });
732
c.
Urls
.Add(new() { Endpoint = c.GetEndpoint("test"), Url = "/sub-path" });
Stress.AppHost (1)
Program.cs (1)
88
.WithUrls(c => c.
Urls
.Add(new() { Url = "https://someplace.com", DisplayText = "Some place" }))
TestShop.AppHost (1)
Program.cs (1)
71
.WithUrls(c => c.
Urls
.ForEach(u => u.DisplayText = $"Online store ({u.Endpoint?.EndpointName})"))