56 writes to State
Aspire.Cli.Tests (56)
Backchannel\ResourceSnapshotMapperTests.cs (13)
19State = "Running", 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)
171State = "Running", 241State = "Running", 318State = "Running", 434State = "Running", 523State = "Running",
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\ExportCommandTests.cs (18)
50new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 51new ResourceSnapshot { Name = "apiservice", DisplayName = "apiservice", ResourceType = "Project", State = "Running" }, 128new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 205new ResourceSnapshot { Name = "other-resource", DisplayName = "other-resource", ResourceType = "Project", State = "Running" }, 228new ResourceSnapshot { Name = "target-resource", DisplayName = "target-resource", ResourceType = "Container", State = "Running" }, 332new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 333new ResourceSnapshot { Name = "apiservice-abc", DisplayName = "apiservice", ResourceType = "Project", State = "Running" }, 334new ResourceSnapshot { Name = "apiservice-def", DisplayName = "apiservice", ResourceType = "Project", State = "Running" }, 453new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 454new ResourceSnapshot { Name = "apiservice", DisplayName = "apiservice", ResourceType = "Project", State = "Running" }, 511new ResourceSnapshot { Name = "apiservice", DisplayName = "apiservice", ResourceType = "Project", State = "Running" }, 512new ResourceSnapshot { Name = "webfrontend", DisplayName = "webfrontend", ResourceType = "Project", State = "Running" }, 570new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 571new ResourceSnapshot { Name = "apiservice-abc", DisplayName = "apiservice", ResourceType = "Project", State = "Running" }, 572new ResourceSnapshot { Name = "apiservice-def", DisplayName = "apiservice", ResourceType = "Project", State = "Running" }, 621new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 646new ResourceSnapshot { Name = "redis", DisplayName = "redis", ResourceType = "Container", State = "Running" }, 647new ResourceSnapshot { Name = "apiservice", DisplayName = "apiservice", ResourceType = "Project", State = "Running" },
Commands\LogsCommandTests.cs (3)
594State = "Running" 602State = "Running" 609State = "Running"
Commands\PsCommandTests.cs (4)
220State = "Running", 232State = "Running", 295State = "Running" 348new ResourceSnapshot { Name = "apiservice", ResourceType = "Project", State = "Running" }
Mcp\ListResourcesToolTests.cs (5)
63State = "Running" 70State = "Running" 77State = "Starting" 108State = "Running", 148State = "Running",
4 references to State
aspire (4)
Backchannel\ResourceSnapshotMapper.cs (2)
132State = snapshot.State, 205if (string.Equals(item.State, "Hidden", StringComparison.OrdinalIgnoreCase))
Commands\DescribeCommand.cs (2)
288var stateText = ColorState(snapshot.State); 305return new ResourceDisplayState(displayName, snapshot.State, snapshot.HealthStatus, endpoints);