1 instantiation of ResourceCommandSnapshot
Aspire.Hosting (1)
ApplicationModel\ResourceNotificationService.cs (1)
461return 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)
107public ImmutableArray<ResourceCommandSnapshot> Commands { get; init; } = [];
ApplicationModel\ResourceNotificationService.cs (8)
396ImmutableArray<ResourceCommandSnapshot>.Builder? builder = null; 400var existingCommand = FindByName(previousState.Commands, annotation.Name); 406builder = ImmutableArray.CreateBuilder<ResourceCommandSnapshot>(previousState.Commands.Length); 422builder = ImmutableArray.CreateBuilder<ResourceCommandSnapshot>(previousState.Commands.Length); 426var newCommand = existingCommand with 444static ResourceCommandSnapshot? FindByName(ImmutableArray<ResourceCommandSnapshot> commands, string name) 457static ResourceCommandSnapshot CreateCommandFromAnnotation(ResourceCommandAnnotation annotation, CustomResourceSnapshot previousState, IServiceProvider serviceProvider)