1 write to Commands
Aspire.Hosting (1)
ApplicationModel\ResourceNotificationService.cs (1)
634return previousState with { Commands = builder.ToImmutable() };
9 references to Commands
Aspire.Hosting (7)
ApplicationModel\ResourceNotificationService.cs (6)
567string.Join(" ", newState.Commands.Select(c => $"{c.DisplayName} ({c.Name}) = {Stringify(c.State)}")), 592var existingCommand = FindByName(previousState.Commands, annotation.Name); 598builder = ImmutableArray.CreateBuilder<ResourceCommandSnapshot>(previousState.Commands.Length); 599builder.AddRange(previousState.Commands); 614builder = ImmutableArray.CreateBuilder<ResourceCommandSnapshot>(previousState.Commands.Length); 615builder.AddRange(previousState.Commands);
Dashboard\DashboardServiceData.cs (1)
52Commands = snapshot.Commands,
Aspire.Hosting.Tests (2)
WithHttpCommandTests.cs (2)
417var commandSnapshot = resourceEvent.Snapshot.Commands.First(c => c.Name == "mycommand"); 486var commandSnapshot = resourceEvent.Snapshot.Commands.First(c => c.Name == "mycommand");