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