7 writes to Name
aspire (2)
Commands\ResourcesCommand.cs (1)
260Name = snapshot.Name,
ResourcesCommandJsonContext.ResourceJson.g.cs (1)
59Setter = static (obj, value) => ((global::Aspire.Shared.Model.Serialization.ResourceJson)obj).Name = 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" }
9 references to Name
aspire (6)
Commands\ResourcesCommand.cs (4)
215var nameWidth = Math.Max("NAME".Length, resources.Max(r => r.Name?.Length ?? 0)); 227foreach (var resource in resources.OrderBy(r => r.Name)) 233var name = resource.Name ?? "-"; 253_interactionService.DisplayPlainText($"[{resource.Name}] {resource.State ?? "Unknown"}{health}{endpointsStr}");
ResourcesCommandJsonContext.ResourceJson.g.cs (2)
58Getter = static obj => ((global::Aspire.Shared.Model.Serialization.ResourceJson)obj).Name, 406string __value_Name = ((global::Aspire.Shared.Model.Serialization.ResourceJson)value).Name;
Aspire.Cli.Tests (3)
Commands\ResourcesCommandTests.cs (3)
190Assert.Equal("frontend", parsedLines[0]!.Name); 191Assert.Equal("postgres", parsedLines[1]!.Name); 220Assert.Equal("frontend", deserialized.Resources[0].Name);