201 writes to DisplayName
Aspire.Cli.Tests (201)
Backchannel\ResourceSnapshotMapperTests.cs (26)
41DisplayName = "MAUI", 73DisplayName = "frontend", 169DisplayName = "frontend", 193DisplayName = "frontend", 219DisplayName = "parameter", 247DisplayName = "parameter", 274DisplayName = "frontend", 317DisplayName = "frontend", 346DisplayName = "messaging", 354DisplayName = "frontend", 372DisplayName = "frontend", 404DisplayName = "messaging", 411DisplayName = "messaging", 419DisplayName = "frontend", 436new() { Name = "cache-zuyppzgw", DisplayName = "cache", ResourceType = "Container", State = "Running" }, 437new() { Name = "frontend", DisplayName = "frontend", ResourceType = "Project", State = "Running" } 451new() { Name = "cache-zuyppzgw", DisplayName = "cache", ResourceType = "Container", State = "Running" }, 452new() { Name = "frontend", DisplayName = "frontend", ResourceType = "Project", State = "Running" } 466new() { Name = "cache-abc12345", DisplayName = "cache", ResourceType = "Container", State = "Running" }, 467new() { Name = "cache-def67890", DisplayName = "cache", ResourceType = "Container", State = "Running" }, 468new() { Name = "frontend", DisplayName = "frontend", ResourceType = "Project", State = "Running" } 481new() { Name = "cache-abc12345", DisplayName = "cache", ResourceType = "Container", State = "Running" }, 482new() { Name = "cache-def67890", DisplayName = "cache", ResourceType = "Container", State = "Running" }, 483new() { Name = "frontend", DisplayName = "frontend", ResourceType = "Project", State = "Running" } 497new() { Name = "cache-zuyppzgw", DisplayName = "cache", ResourceType = "Container", State = "Running" } 510new() { 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)
386new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 394new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 396new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Stopping" }, 398new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Stopping" }, 441DisplayName = $"resource-{index}", 451DisplayName = initialSnapshots[0].DisplayName, 458DisplayName = initialSnapshots[^1].DisplayName, 518new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 554new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 555new ResourceSnapshot { Name = "postgres", DisplayName = "postgres", ResourceType = "Container", State = "Running" }, 556new ResourceSnapshot { Name = "frontend", DisplayName = "frontend", ResourceType = "Project", State = "Running" }, 584DisplayName = "redis", 647new ResourceSnapshot { Name = "redis", Version = 1, DisplayName = "redis", ResourceType = "Container", State = "Starting" }, 686new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 695new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 697new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Stopping" }, 699new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Stopping" }, 730new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 760new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 784new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 812new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 843DisplayName = "postgres", 882new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 913new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 914new ResourceSnapshot { Name = "aspire-dashboard", DisplayName = "aspire-dashboard", ResourceType = "Executable", State = "Hidden" }, 915new ResourceSnapshot { Name = "hidden-svc", DisplayName = "hidden-svc", ResourceType = "Project", State = "Running", IsHidden = true }, 939new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 940new ResourceSnapshot { Name = "aspire-dashboard", DisplayName = "aspire-dashboard", ResourceType = "Executable", State = "Hidden" }, 941new ResourceSnapshot { Name = "hidden-svc", DisplayName = "hidden-svc", ResourceType = "Project", State = "Running", IsHidden = true }, 967new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 968new ResourceSnapshot { Name = "aspire-dashboard", DisplayName = "aspire-dashboard", ResourceType = "Executable", State = "Hidden" }, 992new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 993new ResourceSnapshot { Name = "aspire-dashboard", DisplayName = "aspire-dashboard", ResourceType = "Executable", State = "Hidden" }, 1020new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 1021new ResourceSnapshot { Name = "aspire-dashboard", DisplayName = "aspire-dashboard", ResourceType = "Executable", State = "Hidden" }, 1052Name = "frontend", DisplayName = "frontend", ResourceType = "Project", State = "Running", 1065new ResourceSnapshot { Name = "api-2", DisplayName = "api", ResourceType = "Project", State = "Running" }, 1066new ResourceSnapshot { Name = "api-1", DisplayName = "api", ResourceType = "Project", State = "Running" }, 1067new ResourceSnapshot { Name = "cache", DisplayName = "cache", ResourceType = "Container", State = "Running", IsHidden = true }, 1068new ResourceSnapshot { Name = "connection", DisplayName = "connection", ResourceType = "Parameter", State = "Running" } 1087Name = "end", DisplayName = "api\" # & <b> \\ `\nnext", ResourceType = "Project", State = "Running", 1109Name = "frontend", DisplayName = "frontend", ResourceType = "Project", State = "Running", 1112new ResourceSnapshot { Name = "api-2", DisplayName = "api", ResourceType = "Project", State = "Running" }, 1113new ResourceSnapshot { Name = "api-1", DisplayName = "api", ResourceType = "Project", State = "Running" } 1130new ResourceSnapshot { Name = "cache", DisplayName = "cache", ResourceType = "Container", State = "Hidden" }, 1131new ResourceSnapshot { Name = "connection", DisplayName = "connection", ResourceType = "Parameter", State = "Running" } 1162new ResourceSnapshot { Name = "cache", DisplayName = "cache", ResourceType = "Container", State = "Running" } 1290DisplayName = "redis", 1356DisplayName = "redis", 1369DisplayName = "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)
105DisplayName = "API", 125DisplayName = "Redis", 132DisplayName = "Redis", 139DisplayName = "Redis", 175DisplayName = "API", 190DisplayName = "Redis", 197DisplayName = "Redis", 232DisplayName = "API", 240DisplayName = "Redis", 247DisplayName = "Redis", 312DisplayName = "API Service", 319DisplayName = "Redis", 326DisplayName = "PostgreSQL", 487snapshots.Add(new ResourceSnapshot { Name = "redis-visible", DisplayName = "Redis" }); 488snapshots.Add(new ResourceSnapshot { Name = "redis-hidden", DisplayName = "Redis", IsHidden = true }); 667DisplayName = index == 0 ? longText : name, 887DisplayName = "API Service", 966DisplayName = "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, 302/// to matching by <see cref="ResourceSnapshot.DisplayName"/> only when the display name is 319var displayNameMatches = snapshots.Where(s => string.Equals(s.DisplayName, resourceName, StringComparison.OrdinalIgnoreCase)).ToList(); 358if (string.Equals(item.DisplayName, resource.DisplayName, StringComparisons.ResourceName)) 370return 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)
205DisplayName = GetBoundedText(snapshot.DisplayName), 340if (snapshot.DisplayName is { } displayName) 352var hasDuplicateDisplayName = snapshot.DisplayName is { } displayName && 355hasDuplicateDisplayName ? snapshot.Name : snapshot.DisplayName ?? snapshot.Name, 361if (snapshot.DisplayName is not { } displayName || identities.ContainsKey(displayName)) 391if (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)
451DisplayName = initialSnapshots[0].DisplayName, 458DisplayName = initialSnapshots[^1].DisplayName,