1 write to Text
Aspire.Dashboard (1)
Model\ResourceUrlHelpers.cs (1)
40
Text
= string.IsNullOrEmpty(url.DisplayProperties.DisplayName) ? url.Url.OriginalString : url.DisplayProperties.DisplayName
17 references to Text
Aspire.Dashboard (6)
Components\Controls\ResourceDetails.razor.cs (1)
108
private readonly GridSort<DisplayedUrl> _urlValueSort = GridSort<DisplayedUrl>.ByAscending(vm => vm.Url ?? vm.
Text
);
Components\Pages\Resources.razor.cs (2)
664
return displayedUrls[0].
Text
;
668
var tooltipBuilder = new StringBuilder(string.Join(", ", displayedUrls.Take(maxShownUrls).Select(url => url.
Text
)));
Model\ResourceMenuItems.cs (1)
148
Text = url.
Text
,
Model\ResourceUrlHelpers.cs (2)
83
public string? ValueToVisualize => Url ??
Text
;
87
Text
.Contains(filter, StringComparison.CurrentCultureIgnoreCase) ||
Aspire.Dashboard.Tests (11)
Model\ResourceUrlHelpersTests.cs (11)
33
Assert.Equal("http://localhost:8080", e.
Text
);
52
Assert.Equal("http://localhost:8080", e.
Text
);
60
Assert.Equal("http://localhost:8081", e.
Text
);
79
Assert.Equal("http://localhost:8080", e.
Text
);
87
Assert.Equal("tcp://localhost:8081", e.
Text
);
106
Assert.Equal("https://localhost:8080/test", e.
Text
);
114
Assert.Equal("https://localhost:8081/test2", e.
Text
);
133
Assert.Equal("https://localhost:8081/test2", e.
Text
);
152
Assert.Equal("https://localhost:8081/test2", e.
Text
);
172
Assert.Equal("https://localhost:8080/test", e.
Text
);
180
Assert.Equal("https://localhost:8081/test2", e.
Text
);