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)
983
c.
Urls
.Add(new() { Endpoint = endpoint, Url = urlValue, DisplayText = displayText });
1031
var urlForEndpoint = context.
Urls
.FirstOrDefault(u => u.Endpoint?.EndpointName == endpointName);
1081
context.
Urls
.Add(url);
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBExtensions.cs (1)
358
var url = context.
Urls
.FirstOrDefault(u => u.Endpoint?.EndpointName == KnownUrls.DataExplorer.EndpointName);
Aspire.Hosting.Tests (5)
WithUrlsTests.cs (5)
140
.WithUrls(c => c.
Urls
.Add(new() { Url = "https://example.com", DisplayText = "Example" }))
609
c.
Urls
.Add(new() { Url = "http://example.com/", DisplayLocation = UrlDisplayLocation.SummaryAndDetails });
610
c.
Urls
.Add(new() { Url = "http://example.com/internal", DisplayLocation = UrlDisplayLocation.DetailsOnly });
611
c.
Urls
.Add(new() { Url = "http://example.com/out-of-range", DisplayLocation = (UrlDisplayLocation)100 });
777
c.
Urls
.Add(new() { Endpoint = c.GetEndpoint("test"), Url = "/sub-path" });
Stress.AppHost (1)
Program.cs (1)
90
.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})"))