33 writes to DisplayName
Aspire.Cli.Tests (33)
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\LogsCommandTests.cs (3)
592
DisplayName
= "redis",
600
DisplayName
= "apiservice",
607
DisplayName
= "apiservice",
Mcp\ListResourcesToolTests.cs (4)
61
DisplayName
= "API Service",
68
DisplayName
= "Redis",
75
DisplayName
= "PostgreSQL",
146
DisplayName
= "API Service",
9 references to DisplayName
aspire (9)
Backchannel\ResourceSnapshotMapper.cs (7)
82
.Where(r => string.Equals(r.
DisplayName
, relationship.ResourceName, StringComparisons.ResourceName))
120
DisplayName = snapshot.
DisplayName
,
144
/// to matching by <see cref="ResourceSnapshot.
DisplayName
"/> only when the display name is
161
var displayNameMatches = snapshots.Where(s => string.Equals(s.
DisplayName
, resourceName, StringComparison.OrdinalIgnoreCase)).ToList();
200
if (string.Equals(item.
DisplayName
, resource.
DisplayName
, StringComparisons.ResourceName))
212
return resource.
DisplayName
?? resource.Name;
Commands\LogsCommand.cs (1)
169
|| string.Equals(s.
DisplayName
, resourceName, StringComparisons.ResourceName)))
Mcp\McpResourceToolRefreshService.cs (1)
101
var routedResourceName = resource.
DisplayName
?? resource.Name;