1 instantiation of ResourceCommandSnapshot
Aspire.Hosting (1)
ApplicationModel\ResourceNotificationService.cs (1)
673return new ResourceCommandSnapshot(annotation.Name, state, annotation.DisplayName, annotation.DisplayDescription, annotation.Parameter, annotation.ConfirmationMessage, annotation.IconName, annotation.IconVariant, annotation.IsHighlighted);
9 references to ResourceCommandSnapshot
Aspire.Hosting (9)
ApplicationModel\CustomResourceSnapshot.cs (1)
119public ImmutableArray<ResourceCommandSnapshot> Commands { get; init; } = [];
ApplicationModel\ResourceNotificationService.cs (8)
608ImmutableArray<ResourceCommandSnapshot>.Builder? builder = null; 612var existingCommand = FindByName(previousState.Commands, annotation.Name); 618builder = ImmutableArray.CreateBuilder<ResourceCommandSnapshot>(previousState.Commands.Length); 634builder = ImmutableArray.CreateBuilder<ResourceCommandSnapshot>(previousState.Commands.Length); 638var newCommand = existingCommand with 656static ResourceCommandSnapshot? FindByName(ImmutableArray<ResourceCommandSnapshot> commands, string name) 669static ResourceCommandSnapshot CreateCommandFromAnnotation(ResourceCommandAnnotation annotation, CustomResourceSnapshot previousState, IServiceProvider serviceProvider)