1 write to Url
Aspire.Dashboard (1)
Model\ResourceEndpointHelpers.cs (1)
28Url = url.Url.Scheme is "http" or "https" ? url.Url.OriginalString : null
14 references to Url
Aspire.Dashboard (4)
Components\Controls\ResourceDetails.razor.cs (1)
96private readonly GridSort<DisplayedEndpoint> _endpointValueSort = GridSort<DisplayedEndpoint>.ByAscending(vm => vm.Url ?? vm.Text);
Model\ResourceEndpointHelpers.cs (3)
39.OrderByDescending(e => e.Url?.StartsWith("https") == true) 40.ThenByDescending(e => e.Url != null) 63public string? ValueToVisualize => Url ?? Text;
Aspire.Dashboard.Tests (10)
Model\ResourceEndpointHelpersTests.cs (10)
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); 155Assert.Equal("https://localhost:8080/test", e.Url); 163Assert.Equal("https://localhost:8081/test2", e.Url);