14 writes to Url
Aspire.Hosting (1)
ApplicationModel\ResourceUrlAnnotation.cs (1)
45Url = 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" })); 267u.Url = "https://example.com"; 299.WithUrlForEndpoint("http", u => u.Url = "https://example.com"); 424c.Urls.Add(new() { Url = "http://example.com/", DisplayLocation = UrlDisplayLocation.SummaryAndDetails }); 425c.Urls.Add(new() { Url = "http://example.com/internal", DisplayLocation = UrlDisplayLocation.DetailsOnly }); 426c.Urls.Add(new() { Url = "http://example.com/out-of-range", DisplayLocation = (UrlDisplayLocation)100 }); 505return new() { Url = "https://example.com" }; 533url.Url = "/sub-path"; 564return new() { Url = "/sub-path" }; 595c.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)
45Url = Url,
Aspire.Hosting.Qdrant.Tests (1)
QdrantFunctionalTests.cs (1)
244Assert.Single(urls, u => u.DisplayText == "Qdrant Dashboard" && u.Url.EndsWith("/dashboard"));
Aspire.Hosting.Tests (17)
WithUrlsTests.cs (17)
125Assert.Single(urls, u => u.Url == "https://example.com" && u.DisplayText == "Example"); 150Assert.Single(urls, u => u.Url == "https://example.com" && u.DisplayText == "Example"); 178u => Assert.True(u.Url == endpointUrl.Url && u.DisplayText is null), 179u => Assert.True(u.Url.EndsWith("/test") && u.DisplayText == "Example") 205Assert.Single(urls, u => u.Url.StartsWith("http://localhost") && u.Endpoint?.EndpointName == "test"); 229Assert.Single(urls, u => u.Url.EndsWith("/sub-path") && u.Endpoint?.EndpointName == "http"); 253Assert.Single(urls, u => u.Url == "http://custom.localhost:23456/home" && u.Endpoint?.EndpointName == "http"); 285u.Url == "https://example.com" 550Assert.True(endpointUrl.Url.StartsWith("http://localhost") && endpointUrl.Url.EndsWith("/sub-path")); 578var endpointUrl = projectA.Resource.Annotations.OfType<ResourceUrlAnnotation>().FirstOrDefault(u => u.Endpoint?.EndpointName == "test" && u.Url.EndsWith("/sub-path")); 581Assert.True(endpointUrl.Url.StartsWith("http://localhost") && endpointUrl.Url.EndsWith("/sub-path")); 609var endpointUrl = projectA.Resource.Annotations.OfType<ResourceUrlAnnotation>().FirstOrDefault(u => u.Endpoint?.EndpointName == "test" && u.Url.EndsWith("/sub-path")); 612Assert.True(endpointUrl.Url.StartsWith("http://localhost") && endpointUrl.Url.EndsWith("/sub-path"));