7 writes to State
aspire (2)
Commands\ResourcesCommand.cs (1)
263
State
= snapshot.State,
ResourcesCommandJsonContext.ResourceJson.g.cs (1)
139
Setter = static (obj, value) => ((global::Aspire.Shared.Model.Serialization.ResourceJson)obj).
State
= value!,
Aspire.Cli.Tests (5)
Commands\ResourcesCommandTests.cs (5)
161
new ResourceJson { Name = "frontend", DisplayName = "frontend", ResourceType = "Project",
State
= "Running" },
162
new ResourceJson { Name = "postgres", DisplayName = "postgres", ResourceType = "Container",
State
= "Running" },
163
new ResourceJson { Name = "redis", DisplayName = "redis", ResourceType = "Container",
State
= "Starting" }
203
new ResourceJson { Name = "frontend", DisplayName = "frontend", ResourceType = "Project",
State
= "Running" },
204
new ResourceJson { Name = "postgres", DisplayName = "postgres", ResourceType = "Container",
State
= "Running" }
6 references to State
aspire (5)
Commands\ResourcesCommand.cs (3)
217
var stateWidth = Math.Max("STATE".Length, resources.Max(r => r.
State
?.Length ?? "Unknown".Length));
235
var state = resource.
State
?? "Unknown";
253
_interactionService.DisplayPlainText($"[{resource.Name}] {resource.
State
?? "Unknown"}{health}{endpointsStr}");
ResourcesCommandJsonContext.ResourceJson.g.cs (2)
138
Getter = static obj => ((global::Aspire.Shared.Model.Serialization.ResourceJson)obj).
State
,
426
string __value_State = ((global::Aspire.Shared.Model.Serialization.ResourceJson)value).
State
;
Aspire.Cli.Tests (1)
Commands\ResourcesCommandTests.cs (1)
192
Assert.Equal("Starting", parsedLines[2]!.
State
);