3 writes to Endpoint
Aspire.Hosting (2)
ApplicationModel\ResourceUrlAnnotation.cs (1)
47
Endpoint
= endpoint,
Orchestrator\ApplicationOrchestrator.cs (1)
173
var url = new ResourceUrlAnnotation { Url = allocatedEndpoint.UriString,
Endpoint
= new EndpointReference(resourceWithEndpoints, endpoint) };
Aspire.Hosting.Tests (1)
WithUrlsTests.cs (1)
595
c.Urls.Add(new() {
Endpoint
= c.GetEndpoint("test"), Url = "/sub-path" });
16 references to Endpoint
Aspire.Hosting (5)
Dcp\ResourceSnapshotBuilder.cs (4)
195
var endpointUrls = resourceUrls.Where(u => u.
Endpoint
is not null).ToList();
196
var nonEndpointUrls = resourceUrls.Where(u => u.
Endpoint
is null).ToList();
206
var urlsForEndpoint = endpointUrls.Where(u => string.Equals(endpointName, u.
Endpoint
?.EndpointName, StringComparisons.EndpointAnnotationName)).ToList();
213
urls.Add(new(Name: endpointUrl.
Endpoint
!.EndpointName, Url: endpointUrl.Url, IsInternal: endpointUrl.IsInternal) { IsInactive = isInactive, DisplayProperties = new(endpointUrl.DisplayText ?? "", endpointUrl.DisplayOrder ?? 0) });
Orchestrator\ApplicationOrchestrator.cs (1)
206
if (url.
Endpoint
is { } endpoint)
Aspire.Hosting.Qdrant.Tests (2)
QdrantFunctionalTests.cs (2)
242
Assert.Single(urls, u => u.
Endpoint
?.EndpointName == "grpc" && u.DisplayText == "Qdrant (GRPC)" && u.DisplayLocation == UrlDisplayLocation.DetailsOnly);
243
Assert.Single(urls, u => u.
Endpoint
?.EndpointName == "http" && u.DisplayText == "Qdrant (HTTP)");
Aspire.Hosting.Tests (8)
WithUrlsTests.cs (8)
176
var endpointUrl = urls.First(u => u.
Endpoint
is not null);
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");
287
&& u.
Endpoint
?.EndpointName == "test"
547
var endpointUrl = projectA.Resource.Annotations.OfType<ResourceUrlAnnotation>().FirstOrDefault(u => u.
Endpoint
?.EndpointName == "test");
578
var endpointUrl = projectA.Resource.Annotations.OfType<ResourceUrlAnnotation>().FirstOrDefault(u => u.
Endpoint
?.EndpointName == "test" && u.Url.EndsWith("/sub-path"));
609
var endpointUrl = projectA.Resource.Annotations.OfType<ResourceUrlAnnotation>().FirstOrDefault(u => u.
Endpoint
?.EndpointName == "test" && u.Url.EndsWith("/sub-path"));
TestShop.AppHost (1)
Program.cs (1)
70
.WithUrls(c => c.Urls.ForEach(u => u.DisplayText = $"Online store ({u.
Endpoint
?.EndpointName})"))