53 writes to DisplayName
Aspire.Cli.Tests (53)
Backchannel\ResourceSnapshotMapperTests.cs (13)
17
DisplayName
= "frontend",
64
new() { Name = "cache-zuyppzgw",
DisplayName
= "cache", ResourceType = "Container", State = "Running" },
65
new() { Name = "frontend",
DisplayName
= "frontend", ResourceType = "Project", State = "Running" }
79
new() { Name = "cache-zuyppzgw",
DisplayName
= "cache", ResourceType = "Container", State = "Running" },
80
new() { Name = "frontend",
DisplayName
= "frontend", ResourceType = "Project", State = "Running" }
94
new() { Name = "cache-abc12345",
DisplayName
= "cache", ResourceType = "Container", State = "Running" },
95
new() { Name = "cache-def67890",
DisplayName
= "cache", ResourceType = "Container", State = "Running" },
96
new() { Name = "frontend",
DisplayName
= "frontend", ResourceType = "Project", State = "Running" }
109
new() { Name = "cache-abc12345",
DisplayName
= "cache", ResourceType = "Container", State = "Running" },
110
new() { Name = "cache-def67890",
DisplayName
= "cache", ResourceType = "Container", State = "Running" },
111
new() { Name = "frontend",
DisplayName
= "frontend", ResourceType = "Project", State = "Running" }
125
new() { Name = "cache-zuyppzgw",
DisplayName
= "cache", ResourceType = "Container", State = "Running" }
138
new() { Name = "Cache-Zuyppzgw",
DisplayName
= "Cache", ResourceType = "Container", State = "Running" }
Commands\AgentMcpCommandTests.cs (5)
169
DisplayName
= "test-resource",
239
DisplayName
= "my-resource",
316
DisplayName
= "db1-mcp",
432
DisplayName
= "db-mcp",
521
DisplayName
= "db-mcp",
Commands\DescribeCommandTests.cs (8)
262
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
264
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
266
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Stopping" },
268
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Stopping" },
306
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
308
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
310
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Stopping" },
312
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Stopping" },
Commands\ExportCommandTests.cs (18)
50
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
51
new ResourceSnapshot { Name = "apiservice",
DisplayName
= "apiservice", ResourceType = "Project", State = "Running" },
128
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
205
new ResourceSnapshot { Name = "other-resource",
DisplayName
= "other-resource", ResourceType = "Project", State = "Running" },
228
new ResourceSnapshot { Name = "target-resource",
DisplayName
= "target-resource", ResourceType = "Container", State = "Running" },
332
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
333
new ResourceSnapshot { Name = "apiservice-abc",
DisplayName
= "apiservice", ResourceType = "Project", State = "Running" },
334
new ResourceSnapshot { Name = "apiservice-def",
DisplayName
= "apiservice", ResourceType = "Project", State = "Running" },
453
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
454
new ResourceSnapshot { Name = "apiservice",
DisplayName
= "apiservice", ResourceType = "Project", State = "Running" },
511
new ResourceSnapshot { Name = "apiservice",
DisplayName
= "apiservice", ResourceType = "Project", State = "Running" },
512
new ResourceSnapshot { Name = "webfrontend",
DisplayName
= "webfrontend", ResourceType = "Project", State = "Running" },
570
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
571
new ResourceSnapshot { Name = "apiservice-abc",
DisplayName
= "apiservice", ResourceType = "Project", State = "Running" },
572
new ResourceSnapshot { Name = "apiservice-def",
DisplayName
= "apiservice", ResourceType = "Project", State = "Running" },
621
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
646
new ResourceSnapshot { Name = "redis",
DisplayName
= "redis", ResourceType = "Container", State = "Running" },
647
new ResourceSnapshot { Name = "apiservice",
DisplayName
= "apiservice", ResourceType = "Project", State = "Running" },
Commands\LogsCommandTests.cs (3)
592
DisplayName
= "redis",
600
DisplayName
= "apiservice",
607
DisplayName
= "apiservice",
Commands\PsCommandTests.cs (2)
218
DisplayName
= "apiservice",
230
DisplayName
= "redis",
Mcp\ListResourcesToolTests.cs (4)
61
DisplayName
= "API Service",
68
DisplayName
= "Redis",
75
DisplayName
= "PostgreSQL",
146
DisplayName
= "API Service",
12 references to DisplayName
aspire (12)
Backchannel\ResourceSnapshotMapper.cs (9)
18
/// <see cref="ResourceSnapshot.Name"/> and <see cref="ResourceSnapshot.
DisplayName
"/>.
23
|| string.Equals(s.
DisplayName
, resourceName, StringComparisons.ResourceName));
92
.Where(r => string.Equals(r.
DisplayName
, relationship.ResourceName, StringComparisons.ResourceName))
130
DisplayName = snapshot.
DisplayName
,
154
/// to matching by <see cref="ResourceSnapshot.
DisplayName
"/> only when the display name is
171
var displayNameMatches = snapshots.Where(s => string.Equals(s.
DisplayName
, resourceName, StringComparison.OrdinalIgnoreCase)).ToList();
210
if (string.Equals(item.
DisplayName
, resource.
DisplayName
, StringComparisons.ResourceName))
222
return resource.
DisplayName
?? resource.Name;
Commands\McpToolsCommand.cs (2)
87
var resourceName = r.
DisplayName
?? r.Name;
113
var resourceName = resource.
DisplayName
?? resource.Name;
Mcp\McpResourceToolRefreshService.cs (1)
101
var routedResourceName = resource.
DisplayName
?? resource.Name;