201 writes to DisplayName
Aspire.Cli.Tests (201)
Backchannel\ResourceSnapshotMapperTests.cs (26)
57DisplayName = "MAUI", 89DisplayName = "frontend", 185DisplayName = "frontend", 209DisplayName = "frontend", 235DisplayName = "parameter", 263DisplayName = "parameter", 290DisplayName = "frontend", 333DisplayName = "frontend", 362DisplayName = "messaging", 370DisplayName = "frontend", 388DisplayName = "frontend", 420DisplayName = "messaging", 427DisplayName = "messaging", 435DisplayName = "frontend", 452new() { Name = "cache-zuyppzgw", DisplayName = "cache", ResourceType = "Container", State = "Running" }, 453new() { Name = "frontend", DisplayName = "frontend", ResourceType = "Project", State = "Running" } 467new() { Name = "cache-zuyppzgw", DisplayName = "cache", ResourceType = "Container", State = "Running" }, 468new() { Name = "frontend", DisplayName = "frontend", ResourceType = "Project", State = "Running" } 482new() { Name = "cache-abc12345", DisplayName = "cache", ResourceType = "Container", State = "Running" }, 483new() { Name = "cache-def67890", DisplayName = "cache", ResourceType = "Container", State = "Running" }, 484new() { Name = "frontend", DisplayName = "frontend", ResourceType = "Project", State = "Running" } 497new() { Name = "cache-abc12345", DisplayName = "cache", ResourceType = "Container", State = "Running" }, 498new() { Name = "cache-def67890", DisplayName = "cache", ResourceType = "Container", State = "Running" }, 499new() { Name = "frontend", DisplayName = "frontend", ResourceType = "Project", State = "Running" } 513new() { Name = "cache-zuyppzgw", DisplayName = "cache", ResourceType = "Container", State = "Running" } 526new() { Name = "Cache-Zuyppzgw", DisplayName = "Cache", ResourceType = "Container", State = "Running" }
Backchannel\ResourceSnapshotWatcherTests.cs (12)
202DisplayName = "api", 214DisplayName = "api", 247DisplayName = "api", 260DisplayName = "api", 294DisplayName = "api", 307DisplayName = "api", 341DisplayName = "api", 353DisplayName = "api", 363DisplayName = "api", 488DisplayName = $"resource-{resourceIndex}-update-{updateIndex}", 559DisplayName = "resource-0", 585DisplayName = $"resource-{resourceIndex}",
Commands\AgentMcpCommandTests.cs (13)
240DisplayName = "test-resource", 304DisplayName = "annotated-resource", 381DisplayName = "my-resource", 514DisplayName = "db1-mcp", 665DisplayName = "unrelated-db", 710DisplayName = "pinned-db", 836DisplayName = "API", 928DisplayName = "pinned-db", 1126DisplayName = "pinned-db", 1207DisplayName = "db-mcp", 1409DisplayName = "db-mcp", 1838DisplayName = displayName, 1953DisplayName = "contract-resource",
Commands\DescribeCommandTests.cs (50)
499new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 507new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 509new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Stopping" }, 511new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Stopping" }, 554DisplayName = $"resource-{index}", 564DisplayName = initialSnapshots[0].DisplayName, 571DisplayName = initialSnapshots[^1].DisplayName, 631new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 667new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 668new ResourceSnapshot { Name = "postgres", DisplayName = "postgres", ResourceType = "Container", State = "Running" }, 669new ResourceSnapshot { Name = "frontend", DisplayName = "frontend", ResourceType = "Project", State = "Running" }, 697DisplayName = "redis", 760new ResourceSnapshot { Name = "redis", Version = 1, DisplayName = "redis", ResourceType = "Container", State = "Starting" }, 799new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 808new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 810new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Stopping" }, 812new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Stopping" }, 843new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 873new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 897new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 925new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 956DisplayName = "postgres", 995new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 1026new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 1027new ResourceSnapshot { Name = "aspire-dashboard", DisplayName = "aspire-dashboard", ResourceType = "Executable", State = "Hidden" }, 1028new ResourceSnapshot { Name = "hidden-svc", DisplayName = "hidden-svc", ResourceType = "Project", State = "Running", IsHidden = true }, 1052new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 1053new ResourceSnapshot { Name = "aspire-dashboard", DisplayName = "aspire-dashboard", ResourceType = "Executable", State = "Hidden" }, 1054new ResourceSnapshot { Name = "hidden-svc", DisplayName = "hidden-svc", ResourceType = "Project", State = "Running", IsHidden = true }, 1080new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 1081new ResourceSnapshot { Name = "aspire-dashboard", DisplayName = "aspire-dashboard", ResourceType = "Executable", State = "Hidden" }, 1105new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 1106new ResourceSnapshot { Name = "aspire-dashboard", DisplayName = "aspire-dashboard", ResourceType = "Executable", State = "Hidden" }, 1133new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 1134new ResourceSnapshot { Name = "aspire-dashboard", DisplayName = "aspire-dashboard", ResourceType = "Executable", State = "Hidden" }, 1165Name = "frontend", DisplayName = "frontend", ResourceType = "Project", State = "Running", 1178new ResourceSnapshot { Name = "api-2", DisplayName = "api", ResourceType = "Project", State = "Running" }, 1179new ResourceSnapshot { Name = "api-1", DisplayName = "api", ResourceType = "Project", State = "Running" }, 1180new ResourceSnapshot { Name = "cache", DisplayName = "cache", ResourceType = "Container", State = "Running", IsHidden = true }, 1181new ResourceSnapshot { Name = "connection", DisplayName = "connection", ResourceType = "Parameter", State = "Running" } 1200Name = "end", DisplayName = "api\" # & <b> \\ `\nnext", ResourceType = "Project", State = "Running", 1222Name = "frontend", DisplayName = "frontend", ResourceType = "Project", State = "Running", 1225new ResourceSnapshot { Name = "api-2", DisplayName = "api", ResourceType = "Project", State = "Running" }, 1226new ResourceSnapshot { Name = "api-1", DisplayName = "api", ResourceType = "Project", State = "Running" } 1243new ResourceSnapshot { Name = "cache", DisplayName = "cache", ResourceType = "Container", State = "Hidden" }, 1244new ResourceSnapshot { Name = "connection", DisplayName = "connection", ResourceType = "Parameter", State = "Running" } 1275new ResourceSnapshot { Name = "cache", DisplayName = "cache", ResourceType = "Container", State = "Running" } 1403DisplayName = "redis", 1469DisplayName = "redis", 1482DisplayName = "redis",
Commands\ExportCommandTests.cs (26)
50new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 51new ResourceSnapshot { Name = "apiservice", DisplayName = "apiservice", ResourceType = "Project", State = "Running" }, 127new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 204new ResourceSnapshot { Name = "other-resource", DisplayName = "other-resource", ResourceType = "Project", State = "Running" }, 227new ResourceSnapshot { Name = "target-resource", DisplayName = "target-resource", ResourceType = "Container", State = "Running" }, 330new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 331new ResourceSnapshot { Name = "apiservice-abc", DisplayName = "apiservice", ResourceType = "Project", State = "Running" }, 332new ResourceSnapshot { Name = "apiservice-def", DisplayName = "apiservice", ResourceType = "Project", State = "Running" }, 450new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 451new ResourceSnapshot { Name = "apiservice", DisplayName = "apiservice", ResourceType = "Project", State = "Running" }, 507new ResourceSnapshot { Name = "apiservice", DisplayName = "apiservice", ResourceType = "Project", State = "Running" }, 508new ResourceSnapshot { Name = "webfrontend", DisplayName = "webfrontend", ResourceType = "Project", State = "Running" }, 565new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 566new ResourceSnapshot { Name = "apiservice-abc", DisplayName = "apiservice", ResourceType = "Project", State = "Running" }, 567new ResourceSnapshot { Name = "apiservice-def", DisplayName = "apiservice", ResourceType = "Project", State = "Running" }, 615new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 616new ResourceSnapshot { Name = "aspire-dashboard", DisplayName = "aspire-dashboard", ResourceType = "Executable", State = "Hidden" }, 617new ResourceSnapshot { Name = "hidden-svc", DisplayName = "hidden-svc", ResourceType = "Project", State = "Running", IsHidden = true }, 659new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 660new ResourceSnapshot { Name = "aspire-dashboard", DisplayName = "aspire-dashboard", ResourceType = "Executable", State = "Hidden" }, 703new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 704new ResourceSnapshot { Name = "aspire-dashboard", DisplayName = "aspire-dashboard", ResourceType = "Executable", State = "Hidden" }, 745new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 781new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 824new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 825new ResourceSnapshot { Name = "apiservice", DisplayName = "apiservice", ResourceType = "Project", State = "Running" },
Commands\LogsCommandTests.cs (12)
736DisplayName = "redis", 743DisplayName = "aspire-dashboard", 826DisplayName = "redis", 857DisplayName = "redis", 867DisplayName = "redis", 874DisplayName = "late-hidden", 993DisplayName = "redis", 1000DisplayName = "aspire-dashboard", 1557DisplayName = "redis", 1565DisplayName = "apiservice", 1572DisplayName = "apiservice", 1636DisplayName = "late-hidden",
Commands\ResourceCommandTests.cs (1)
2352DisplayName = name,
Commands\TerminalCommandTests.cs (1)
823DisplayName = displayName,
Commands\TerminalResourceResolverTests.cs (17)
27new() { Name = "shell-def456", DisplayName = "shell" }, 28new() { Name = "shell-abc123", DisplayName = "shell" } 53new() { Name = "shell-abc123", DisplayName = "shell", Properties = Properties(replicaIndex) } 83new() { Name = "shell-abc123", DisplayName = "shell", Properties = Properties("0") }, 84new() { Name = "shell-def456", DisplayName = "shell", Properties = Properties("1") } 108new() { Name = "other-abc123", DisplayName = "shell-def456", Properties = Properties("0") }, 109new() { Name = "shell-def456", DisplayName = "shell", Properties = Properties("1") } 144new() { Name = "shell-abc123", DisplayName = "shell" }, 145new() { Name = "shell-def456", DisplayName = "shell" } 177new() { Name = "shell-abc123", DisplayName = "shell" }, 178new() { Name = "shell-def456", DisplayName = "shell" } 214new() { Name = "shell-def456", DisplayName = "shell", Properties = Properties(replicaIndex) } 251DisplayName = "shell", 279new() { Name = "shell-abc123", DisplayName = "shell" }, 280new() { Name = "shell-def456", DisplayName = "shell" } 306new() { Name = "shell-abc123", DisplayName = "shell", Properties = Properties("0") } 336ResourceSnapshots = hasOtherInstances ? [new() { Name = "shell-abc123", DisplayName = "shell" }] : [],
Commands\TerminalTapePlayCommandTests.cs (7)
135new() { Name = "shell-abc123", DisplayName = "shell" }, 136new() { Name = "shell-def456", DisplayName = "shell" } 172new() { Name = "shell-def456", DisplayName = "shell" }, 173new() { Name = "shell-abc123", DisplayName = "shell" } 210DisplayName = "shell", 216DisplayName = "shell", 567new ResourceSnapshot { Name = "shell-0", DisplayName = "shell", ResourceType = "Executable", State = "Running" }
Mcp\ExcludeFromMcpTests.cs (10)
110DisplayName = "API Service", 126DisplayName = "Secret Service", 168DisplayName = "Secret Service", 214DisplayName = "Secret Service", 252DisplayName = "API Service", 286DisplayName = "Secret Service", 425DisplayName = "API Service", 432DisplayName = "Secret Service", 473DisplayName = "API Service", 480DisplayName = "Secret Service",
Mcp\ListResourcesToolTests.cs (18)
107DisplayName = "API", 127DisplayName = "Redis", 134DisplayName = "Redis", 141DisplayName = "Redis", 177DisplayName = "API", 192DisplayName = "Redis", 199DisplayName = "Redis", 234DisplayName = "API", 242DisplayName = "Redis", 249DisplayName = "Redis", 314DisplayName = "API Service", 321DisplayName = "Redis", 328DisplayName = "PostgreSQL", 489snapshots.Add(new ResourceSnapshot { Name = "redis-visible", DisplayName = "Redis" }); 490snapshots.Add(new ResourceSnapshot { Name = "redis-hidden", DisplayName = "Redis", IsHidden = true }); 669DisplayName = index == 0 ? longText : name, 889DisplayName = "API Service", 968DisplayName = "Redis",
Mcp\WaitForResourcesToolTests.cs (8)
92DisplayName = "API", 310DisplayName = "API", 316DisplayName = "Worker", 365DisplayName = "Hidden", 372DisplayName = "Excluded", 383DisplayName = "Replica", 389DisplayName = "Replica", 571DisplayName = "API",
28 references to DisplayName
aspire (25)
Backchannel\ResourceSnapshotMapper.cs (9)
20/// <see cref="ResourceSnapshot.Name"/> and <see cref="ResourceSnapshot.DisplayName"/>. 25|| string.Equals(s.DisplayName, resourceName, StringComparisons.ResourceName)); 98.Where(r => string.Equals(r.DisplayName, relationship.ResourceName, StringComparisons.ResourceName)) 150DisplayName = snapshot.DisplayName, 303/// to matching by <see cref="ResourceSnapshot.DisplayName"/> only when the display name is 320var displayNameMatches = snapshots.Where(s => string.Equals(s.DisplayName, resourceName, StringComparison.OrdinalIgnoreCase)).ToList(); 359if (string.Equals(item.DisplayName, resource.DisplayName, StringComparisons.ResourceName)) 371return resource.DisplayName ?? resource.Name;
Commands\DescribeCommand.cs (2)
250var resourcesByDisplayName = graphResources.ToLookup(r => r.DisplayName, StringComparers.ResourceName); 256.Where(relationship => !string.Equals(relationship.ResourceName, r.DisplayName, StringComparisons.ResourceName))
Commands\McpToolsCommand.cs (2)
77var resourceName = r.DisplayName ?? r.Name; 103var resourceName = resource.DisplayName ?? resource.Name;
Commands\TerminalResourceResolver.cs (2)
54var canonicalName = !string.IsNullOrEmpty(snapshot.DisplayName) 55? snapshot.DisplayName
Mcp\McpResourceToolRefreshService.cs (1)
106var routedResourceName = resource.DisplayName ?? resource.Name;
Mcp\Tools\ListResourcesTool.cs (6)
206DisplayName = GetBoundedText(snapshot.DisplayName), 342if (snapshot.DisplayName is { } displayName) 354var hasDuplicateDisplayName = snapshot.DisplayName is { } displayName && 357hasDuplicateDisplayName ? snapshot.Name : snapshot.DisplayName ?? snapshot.Name, 363if (snapshot.DisplayName is not { } displayName || identities.ContainsKey(displayName)) 393if (snapshot.DisplayName is not { } displayName || runtimeNames.Contains(displayName))
Mcp\Tools\McpToolHelpers.cs (2)
468if (snapshot.DisplayName is not null) 470excludedNames.Add(snapshot.DisplayName);
Mcp\Tools\WaitForResourcesTool.cs (1)
350snapshot.DisplayName,
Aspire.Cli.Tests (3)
Backchannel\ResourceSnapshotWatcherTests.cs (1)
523.Select(update => new { update.Name, update.DisplayName, update.State })
Commands\DescribeCommandTests.cs (2)
564DisplayName = initialSnapshots[0].DisplayName, 571DisplayName = initialSnapshots[^1].DisplayName,