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