11 references to Enabled
Aspire.Hosting (5)
ApplicationModel\CommandsConfigurationExtensions.cs (3)
40
return ResourceCommandState.
Enabled
;
72
return ResourceCommandState.
Enabled
;
105
return ResourceCommandState.
Enabled
;
Dashboard\proto\Partials.cs (1)
119
Hosting.ApplicationModel.ResourceCommandState.
Enabled
=> ResourceCommandState.Enabled,
ResourceBuilderExtensions.cs (1)
1008
return builder.WithAnnotation(new ResourceCommandAnnotation(name, displayName, updateState ?? (c => ResourceCommandState.
Enabled
), executeCommand, displayDescription, parameter, confirmationMessage, iconName, iconVariant, isHighlighted));
Aspire.Hosting.Tests (6)
Dashboard\DashboardServiceTests.cs (1)
95
updateState: c => ApplicationModel.ResourceCommandState.
Enabled
,
ResourceCommandAnnotationTests.cs (5)
15
[InlineData(CommandsConfigurationExtensions.StartCommandName, "Exited", ResourceCommandState.
Enabled
)]
16
[InlineData(CommandsConfigurationExtensions.StartCommandName, "Finished", ResourceCommandState.
Enabled
)]
17
[InlineData(CommandsConfigurationExtensions.StartCommandName, "FailedToStart", ResourceCommandState.
Enabled
)]
22
[InlineData(CommandsConfigurationExtensions.StopCommandName, "Running", ResourceCommandState.
Enabled
)]
30
[InlineData(CommandsConfigurationExtensions.RestartCommandName, "Running", ResourceCommandState.
Enabled
)]