9 writes to Url
Aspire.Dashboard (1)
Model\ResourceUrlHelpers.cs (1)
38
Url
= !KnownUnsupportedUrlSchemes.IsUnsupportedScheme(url.Url.Scheme) ? url.Url.OriginalString : null,
Aspire.Dashboard.Components.Tests (4)
Controls\UrlsColumnDisplayTests.cs (4)
149
new() { Index = 0, Name = "https", Text = link,
Url
= link, OriginalUrlString = link },
150
new() { Index = 1, Name = "tcp", Text = tcp,
Url
= null, OriginalUrlString = tcp },
151
new() { Index = 2, Name = "other", Text = other,
Url
= other, OriginalUrlString = other }
175
Url
= $"https://localhost:{5000 + i}",
Aspire.Dashboard.Tests (4)
Components\UrlsColumnDisplayTests.cs (4)
20
Url
= "https://localhost:17174",
35
Url
= null,
51
Url
= null,
68
Url
= "https://localhost:17174/login?token=synthetic-secret",
29 references to Url
Aspire.Dashboard (11)
Components\Controls\ResourceDetails.razor.cs (1)
131
private readonly EnumerableGridSort<DisplayedUrl> _urlValueSort = EnumerableGridSort<DisplayedUrl>.ByAscending(vm => vm.
Url
?? vm.Text);
Components\Layout\ResourcesLayout.razor.cs (1)
2078
return url.
Url
is { } href
Components\ResourcesGridColumns\UrlsColumnDisplay.razor.cs (1)
19
return DashboardUIHelpers.MaskUrlForDisplay(displayedUrl.
Url
?? displayedUrl.OriginalUrlString);
Model\ResourceGraph\ResourceGraphMapper.cs (1)
87
EndpointUrl = r.IsParameter ? null : endpoint?.
Url
,
Model\ResourceMenuBuilder.cs (3)
198
.Where(u => !string.IsNullOrEmpty(u.
Url
))
236
return MenuButtonItem.CreateExternalLink(url.Text, url.
Url
!, s_linkIcon, tooltip: url.
Url
);
Model\ResourceUrlHelpers.cs (4)
56
.ThenByDescending(e => e.
Url
?.StartsWith("https", StringComparison.Ordinal) == true)
57
.ThenByDescending(e => e.
Url
is not null)
87
public string? ValueToVisualize =>
Url
?? Text;
90
=>
Url
?.Contains(filter, StringComparison.CurrentCultureIgnoreCase) == true ||
Aspire.Dashboard.Tests (18)
Model\ResourceUrlHelpersTests.cs (18)
35
Assert.Equal("http://localhost:8080", e.
Url
);
54
Assert.Equal("http://localhost:8080", e.
Url
);
62
Assert.Equal("http://localhost:8081", e.
Url
);
81
Assert.Equal("http://localhost:8080", e.
Url
);
89
Assert.Null(e.
Url
);
109
Assert.Equal("myapp://resource/123", e.
Url
);
117
Assert.Equal("mailto:test@example.com", e.
Url
);
125
Assert.Equal("ftp://files.example.com/path", e.
Url
);
144
Assert.Equal("https://localhost:8080/test", e.
Url
);
152
Assert.Equal("https://localhost:8081/test2", e.
Url
);
171
Assert.Equal("https://localhost:8081/test2", e.
Url
);
190
Assert.Equal("https://localhost:8081/test2", e.
Url
);
210
Assert.Equal("https://localhost:8080/test", e.
Url
);
218
Assert.Equal("https://localhost:8081/test2", e.
Url
);
257
Assert.Equal("http://localhost:8082", e.
Url
);
262
Assert.Equal("https://localhost:8079", e.
Url
);
267
Assert.Equal("http://localhost:8080", e.
Url
);
272
Assert.Equal("http://localhost:8083", e.
Url
);