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