6 instantiations of UrlDisplayPropertiesViewModel
Aspire.Dashboard (2)
Model\ResourceViewModel.cs (1)
433
public static readonly UrlDisplayPropertiesViewModel Empty =
new
(string.Empty, 0);
ServiceClient\Partials.cs (1)
105
select new UrlViewModel(u.EndpointName, parsedUri, u.IsInternal, u.IsInactive, new
UrlDisplayPropertiesViewModel
(TranslateKnownUrlName(u), u.DisplayProperties.SortOrder)))
Aspire.Dashboard.Tests (4)
Model\ResourceUrlHelpersTests.cs (4)
247
new("Zero-Https", new("https://localhost:8079"), isInternal: false, isInactive: false, displayProperties: new
UrlDisplayPropertiesViewModel
(string.Empty, 0)),
248
new("Zero-Http", new("http://localhost:8080"), isInternal: false, isInactive: false, displayProperties: new
UrlDisplayPropertiesViewModel
(string.Empty, 0)),
249
new("Positive", new("http://localhost:8082"), isInternal: false, isInactive: false, displayProperties: new
UrlDisplayPropertiesViewModel
(string.Empty, 1)),
250
new("Negative", new("http://localhost:8083"), isInternal: false, isInactive: false, displayProperties: new
UrlDisplayPropertiesViewModel
(string.Empty, -1))
25 references to UrlDisplayPropertiesViewModel
Aspire.Dashboard (3)
Model\ResourceViewModel.cs (3)
416
public
UrlDisplayPropertiesViewModel
DisplayProperties { get; }
418
public UrlViewModel(string? endpointName, Uri url, bool isInternal, bool isInactive,
UrlDisplayPropertiesViewModel
displayProperties)
433
public static readonly
UrlDisplayPropertiesViewModel
Empty = new(string.Empty, 0);
Aspire.Dashboard.Tests (22)
Model\ResourceUrlHelpersTests.cs (21)
28
var endpoints = GetUrls(ModelTestHelpers.CreateResource(urls: [new("Test", new("http://localhost:8080"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty)]));
45
new("Test", new("http://localhost:8080"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty),
46
new("Test2", new("http://localhost:8081"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty)])
72
new("Test", new("http://localhost:8080"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty),
73
new("Test2", new("tcp://localhost:8081"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty)])
99
new("Email", new("mailto:test@example.com"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty),
100
new("FTP", new("ftp://files.example.com/path"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty),
101
new("Custom", new("myapp://resource/123"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty)])
135
new("First", new("https://localhost:8080/test"), isInternal:false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty),
136
new("Test", new("https://localhost:8081/test2"), isInternal:false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty)
162
new("First", new("https://localhost:8080/test"), isInternal:true, isInactive : false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty),
163
new("Test", new("https://localhost:8081/test2"), isInternal:false, isInactive : false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty)
181
new("First", new("https://localhost:8080/test"), isInternal: false, isInactive : true, displayProperties:
UrlDisplayPropertiesViewModel
.Empty),
182
new("Test", new("https://localhost:8081/test2"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty)
200
new("First", new("https://localhost:8080/test"), isInternal:true, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty),
201
new("Test", new("https://localhost:8081/test2"), isInternal:false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty)
228
new("a", new("http://localhost:8080"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty),
229
new("C", new("http://localhost:8080"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty),
230
new("D", new("tcp://localhost:8080"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty),
231
new("B", new("tcp://localhost:8080"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty),
232
new("Z", new("https://localhost:8080"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty)
ResourceOutgoingPeerResolverTests.cs (1)
23
urls: serviceAddress is null || servicePort is null ? [] : [new UrlViewModel(name, new($"http://{serviceAddress}:{servicePort}"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty)]);