4 writes to DisplayProperties
Aspire.Hosting (4)
Dcp\ResourceSnapshotBuilder.cs (3)
279DisplayProperties = new(endpointUrl.DisplayText ?? "", endpointUrl.DisplayOrder ?? 0) 305DisplayProperties = new(endpointUrl.DisplayText ?? "", endpointUrl.DisplayOrder ?? 0) 316DisplayProperties = new(url.DisplayText ?? "", url.DisplayOrder ?? 0)
Orchestrator\ApplicationOrchestrator.cs (1)
160DisplayProperties = new(url.DisplayText ?? "", url.DisplayOrder ?? 0)
8 references to DisplayProperties
Aspire.Hosting (4)
Dashboard\proto\Partials.cs (4)
59if (urlSnapshot.DisplayProperties?.DisplayName is not null) 61displayProperties.DisplayName = urlSnapshot.DisplayProperties.DisplayName; 64if (urlSnapshot.DisplayProperties?.SortOrder is not null) 66displayProperties.SortOrder = urlSnapshot.DisplayProperties.SortOrder;
Aspire.Hosting.Tests (4)
WithUrlsTests.cs (4)
420s => Assert.True(s.Name == httpEndpoint.EndpointName && s.DisplayProperties.DisplayName == ""), // <-- this is the default URL added for the endpoint 421s => Assert.True(s.Name == httpEndpoint.EndpointName && s.Url.EndsWith("/one") && s.DisplayProperties.DisplayName == "Example 1"), 422s => Assert.True(s.Name == httpEndpoint.EndpointName && s.Url.EndsWith("/two") && s.DisplayProperties.DisplayName == "Example 2") 987var crossResourceUrl = resourceEvent.Snapshot.Urls.FirstOrDefault(u => u.DisplayProperties.DisplayName == "API Docs");