14 writes to Url
Aspire.Hosting (1)
ApplicationModel\ResourceUrlAnnotation.cs (1)
45
Url
= Url,
Aspire.Hosting.Qdrant (1)
QdrantBuilderExtensions.cs (1)
97
.WithUrlForEndpoint(QdrantServerResource.HttpEndpointName, e => new ResourceUrlAnnotation() {
Url
= "/dashboard", DisplayText = "Qdrant Dashboard" });
Aspire.Hosting.Tests (10)
WithUrlsTests.cs (10)
111
.WithUrls(c => c.Urls.Add(new() {
Url
= "https://example.com", DisplayText = "Example" }));
267
u.
Url
= "https://example.com";
299
.WithUrlForEndpoint("http", u => u.
Url
= "https://example.com");
424
c.Urls.Add(new() {
Url
= "http://example.com/", DisplayLocation = UrlDisplayLocation.SummaryAndDetails });
425
c.Urls.Add(new() {
Url
= "http://example.com/internal", DisplayLocation = UrlDisplayLocation.DetailsOnly });
426
c.Urls.Add(new() {
Url
= "http://example.com/out-of-range", DisplayLocation = (UrlDisplayLocation)100 });
505
return new() {
Url
= "https://example.com" };
533
url.
Url
= "/sub-path";
564
return new() {
Url
= "/sub-path" };
595
c.Urls.Add(new() { Endpoint = c.GetEndpoint("test"),
Url
= "/sub-path" });
Stress.AppHost (1)
Program.cs (1)
74
.WithUrls(c => c.Urls.Add(new() {
Url
= "https://someplace.com", DisplayText = "Some place" }))
TestShop.AppHost (1)
Program.cs (1)
74
.WithUrlForEndpoint("https", ep => new() {
Url
= "/health", DisplayText = "Health", DisplayLocation = UrlDisplayLocation.DetailsOnly });
19 references to Url
Aspire.Hosting (1)
ApplicationModel\ResourceUrlAnnotation.cs (1)
45
Url =
Url
,
Aspire.Hosting.Qdrant.Tests (1)
QdrantFunctionalTests.cs (1)
244
Assert.Single(urls, u => u.DisplayText == "Qdrant Dashboard" && u.
Url
.EndsWith("/dashboard"));
Aspire.Hosting.Tests (17)
WithUrlsTests.cs (17)
125
Assert.Single(urls, u => u.
Url
== "https://example.com" && u.DisplayText == "Example");
150
Assert.Single(urls, u => u.
Url
== "https://example.com" && u.DisplayText == "Example");
178
u => Assert.True(u.
Url
== endpointUrl.
Url
&& u.DisplayText is null),
179
u => Assert.True(u.
Url
.EndsWith("/test") && u.DisplayText == "Example")
205
Assert.Single(urls, u => u.
Url
.StartsWith("http://localhost") && u.Endpoint?.EndpointName == "test");
229
Assert.Single(urls, u => u.
Url
.EndsWith("/sub-path") && u.Endpoint?.EndpointName == "http");
253
Assert.Single(urls, u => u.
Url
== "http://custom.localhost:23456/home" && u.Endpoint?.EndpointName == "http");
285
u.
Url
== "https://example.com"
550
Assert.True(endpointUrl.
Url
.StartsWith("http://localhost") && endpointUrl.
Url
.EndsWith("/sub-path"));
578
var endpointUrl = projectA.Resource.Annotations.OfType<ResourceUrlAnnotation>().FirstOrDefault(u => u.Endpoint?.EndpointName == "test" && u.
Url
.EndsWith("/sub-path"));
581
Assert.True(endpointUrl.
Url
.StartsWith("http://localhost") && endpointUrl.
Url
.EndsWith("/sub-path"));
609
var endpointUrl = projectA.Resource.Annotations.OfType<ResourceUrlAnnotation>().FirstOrDefault(u => u.Endpoint?.EndpointName == "test" && u.
Url
.EndsWith("/sub-path"));
612
Assert.True(endpointUrl.
Url
.StartsWith("http://localhost") && endpointUrl.
Url
.EndsWith("/sub-path"));