1 write to Url
Aspire.Dashboard (1)
Model\ResourceEndpointHelpers.cs (1)
33Url = url.Url.Scheme is "http" or "https" ? url.Url.OriginalString : null
17 references to Url
Aspire.Dashboard (6)
Components\Controls\ResourceDetails.razor.cs (1)
96private readonly GridSort<DisplayedEndpoint> _endpointValueSort = GridSort<DisplayedEndpoint>.ByAscending(vm => vm.Url ?? vm.Text);
Model\ResourceEndpointHelpers.cs (3)
44.OrderByDescending(e => e.Url?.StartsWith("https") == true) 45.ThenByDescending(e => e.Url != null) 68public string? ValueToVisualize => Url ?? Text;
Model\ResourceGraph\ResourceGraphMapper.cs (2)
73EndpointUrl = endpoint?.Url, 82var text = endpoint?.Text ?? endpoint?.Url;
Aspire.Dashboard.Tests (11)
Model\ResourceEndpointHelpersTests.cs (11)
35Assert.Equal("http://localhost:8080", e.Url); 54Assert.Equal("http://localhost:8080", e.Url); 62Assert.Equal("http://localhost:8081", e.Url); 81Assert.Equal("http://localhost:8080", e.Url); 89Assert.Null(e.Url); 108Assert.Equal("https://localhost:8080/test", e.Url); 116Assert.Equal("https://localhost:8081/test2", e.Url); 135Assert.Equal("https://localhost:8081/test2", e.Url); 154Assert.Equal("https://localhost:8081/test2", e.Url); 174Assert.Equal("https://localhost:8080/test", e.Url); 182Assert.Equal("https://localhost:8081/test2", e.Url);