33 writes to DisplayName
Aspire.Cli.Tests (33)
Backchannel\ResourceSnapshotMapperTests.cs (13)
17DisplayName = "frontend", 64new() { Name = "cache-zuyppzgw", DisplayName = "cache", ResourceType = "Container", State = "Running" }, 65new() { Name = "frontend", DisplayName = "frontend", ResourceType = "Project", State = "Running" } 79new() { Name = "cache-zuyppzgw", DisplayName = "cache", ResourceType = "Container", State = "Running" }, 80new() { Name = "frontend", DisplayName = "frontend", ResourceType = "Project", State = "Running" } 94new() { Name = "cache-abc12345", DisplayName = "cache", ResourceType = "Container", State = "Running" }, 95new() { Name = "cache-def67890", DisplayName = "cache", ResourceType = "Container", State = "Running" }, 96new() { Name = "frontend", DisplayName = "frontend", ResourceType = "Project", State = "Running" } 109new() { Name = "cache-abc12345", DisplayName = "cache", ResourceType = "Container", State = "Running" }, 110new() { Name = "cache-def67890", DisplayName = "cache", ResourceType = "Container", State = "Running" }, 111new() { Name = "frontend", DisplayName = "frontend", ResourceType = "Project", State = "Running" } 125new() { Name = "cache-zuyppzgw", DisplayName = "cache", ResourceType = "Container", State = "Running" } 138new() { Name = "Cache-Zuyppzgw", DisplayName = "Cache", ResourceType = "Container", State = "Running" }
Commands\AgentMcpCommandTests.cs (5)
169DisplayName = "test-resource", 239DisplayName = "my-resource", 316DisplayName = "db1-mcp", 432DisplayName = "db-mcp", 521DisplayName = "db-mcp",
Commands\DescribeCommandTests.cs (8)
262new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 264new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 266new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Stopping" }, 268new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Stopping" }, 306new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 308new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 310new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Stopping" }, 312new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Stopping" },
Commands\LogsCommandTests.cs (3)
592DisplayName = "redis", 600DisplayName = "apiservice", 607DisplayName = "apiservice",
Mcp\ListResourcesToolTests.cs (4)
61DisplayName = "API Service", 68DisplayName = "Redis", 75DisplayName = "PostgreSQL", 146DisplayName = "API Service",
9 references to DisplayName
aspire (9)
Backchannel\ResourceSnapshotMapper.cs (7)
82.Where(r => string.Equals(r.DisplayName, relationship.ResourceName, StringComparisons.ResourceName)) 120DisplayName = snapshot.DisplayName, 144/// to matching by <see cref="ResourceSnapshot.DisplayName"/> only when the display name is 161var displayNameMatches = snapshots.Where(s => string.Equals(s.DisplayName, resourceName, StringComparison.OrdinalIgnoreCase)).ToList(); 200if (string.Equals(item.DisplayName, resource.DisplayName, StringComparisons.ResourceName)) 212return resource.DisplayName ?? resource.Name;
Commands\LogsCommand.cs (1)
169|| string.Equals(s.DisplayName, resourceName, StringComparisons.ResourceName)))
Mcp\McpResourceToolRefreshService.cs (1)
101var routedResourceName = resource.DisplayName ?? resource.Name;