7 references to ResourceCommandAnnotation
Aspire.Hosting (7)
ApplicationModel\CommandsConfigurationExtensions.cs (3)
19
resource.Annotations.Add(new
ResourceCommandAnnotation
(
52
resource.Annotations.Add(new
ResourceCommandAnnotation
(
85
resource.Annotations.Add(new
ResourceCommandAnnotation
(
Orchestrator\ParameterProcessor.cs (2)
197
parameterResource.Annotations.Add(new
ResourceCommandAnnotation
(
213
parameterResource.Annotations.Add(new
ResourceCommandAnnotation
(
ResourceBuilderExtensions.cs (2)
2011
return builder.WithAnnotation(new
ResourceCommandAnnotation
(name, displayName, commandOptions.UpdateState ?? (c => ResourceCommandState.Enabled), executeCommand, commandOptions.Description, commandOptions.Parameter, commandOptions.ConfirmationMessage, commandOptions.IconName, commandOptions.IconVariant, commandOptions.IsHighlighted));
2076
return builder.WithAnnotation(new
ResourceCommandAnnotation
(name, displayName, updateState ?? (c => ResourceCommandState.Enabled), executeCommand, displayDescription, parameter, confirmationMessage, iconName, iconVariant, isHighlighted));