6 instantiations of UrlDisplayPropertiesViewModel
Aspire.Dashboard (2)
Model\ResourceViewModel.cs (1)
381
public static readonly UrlDisplayPropertiesViewModel Empty =
new
(string.Empty, 0);
ServiceClient\Partials.cs (1)
96
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)
211
new("Zero-Https", new("https://localhost:8079"), isInternal: false, isInactive: false, displayProperties: new
UrlDisplayPropertiesViewModel
(string.Empty, 0)),
212
new("Zero-Http", new("http://localhost:8080"), isInternal: false, isInactive: false, displayProperties: new
UrlDisplayPropertiesViewModel
(string.Empty, 0)),
213
new("Positive", new("http://localhost:8082"), isInternal: false, isInactive: false, displayProperties: new
UrlDisplayPropertiesViewModel
(string.Empty, 1)),
214
new("Negative", new("http://localhost:8083"), isInternal: false, isInactive: false, displayProperties: new
UrlDisplayPropertiesViewModel
(string.Empty, -1))
22 references to UrlDisplayPropertiesViewModel
Aspire.Dashboard (3)
Model\ResourceViewModel.cs (3)
364
public
UrlDisplayPropertiesViewModel
DisplayProperties { get; }
366
public UrlViewModel(string? endpointName, Uri url, bool isInternal, bool isInactive,
UrlDisplayPropertiesViewModel
displayProperties)
381
public static readonly
UrlDisplayPropertiesViewModel
Empty = new(string.Empty, 0);
Aspire.Dashboard.Tests (19)
Model\ResourceUrlHelpersTests.cs (18)
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("First", new("https://localhost:8080/test"), isInternal:false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty),
100
new("Test", new("https://localhost:8081/test2"), isInternal:false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty)
126
new("First", new("https://localhost:8080/test"), isInternal:true, isInactive : false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty),
127
new("Test", new("https://localhost:8081/test2"), isInternal:false, isInactive : false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty)
145
new("First", new("https://localhost:8080/test"), isInternal: false, isInactive : true, displayProperties:
UrlDisplayPropertiesViewModel
.Empty),
146
new("Test", new("https://localhost:8081/test2"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty)
164
new("First", new("https://localhost:8080/test"), isInternal:true, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty),
165
new("Test", new("https://localhost:8081/test2"), isInternal:false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty)
192
new("a", new("http://localhost:8080"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty),
193
new("C", new("http://localhost:8080"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty),
194
new("D", new("tcp://localhost:8080"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty),
195
new("B", new("tcp://localhost:8080"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty),
196
new("Z", new("https://localhost:8080"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty)
ResourceOutgoingPeerResolverTests.cs (1)
22
urls: serviceAddress is null || servicePort is null ? [] : [new UrlViewModel(name, new($"http://{serviceAddress}:{servicePort}"), isInternal: false, isInactive: false, displayProperties:
UrlDisplayPropertiesViewModel
.Empty)]);