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