20 references to Enabled
Aspire.Hosting (7)
ApplicationModel\CommandsConfigurationExtensions.cs (3)
38
return ResourceCommandState.
Enabled
;
71
return ResourceCommandState.
Enabled
;
105
return ResourceCommandState.
Enabled
;
Dashboard\proto\Partials.cs (1)
132
Hosting.ApplicationModel.ResourceCommandState.
Enabled
=> ResourceCommandState.Enabled,
ResourceBuilderExtensions.cs (3)
1386
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));
1451
return builder.WithAnnotation(new ResourceCommandAnnotation(name, displayName, updateState ?? (c => ResourceCommandState.
Enabled
), executeCommand, displayDescription, parameter, confirmationMessage, iconName, iconVariant, isHighlighted));
1641
commandOptions.UpdateState = context => targetRunning ? ResourceCommandState.
Enabled
: ResourceCommandState.Disabled;
Aspire.Hosting.Tests (13)
Dashboard\DashboardServiceTests.cs (1)
157
UpdateState = c => ApplicationModel.ResourceCommandState.
Enabled
,
ResourceCommandAnnotationTests.cs (7)
16
[InlineData(KnownResourceCommands.StartCommand, "Exited", ResourceCommandState.
Enabled
)]
17
[InlineData(KnownResourceCommands.StartCommand, "Finished", ResourceCommandState.
Enabled
)]
18
[InlineData(KnownResourceCommands.StartCommand, "FailedToStart", ResourceCommandState.
Enabled
)]
19
[InlineData(KnownResourceCommands.StartCommand, "Unknown", ResourceCommandState.
Enabled
)]
20
[InlineData(KnownResourceCommands.StartCommand, "Waiting", ResourceCommandState.
Enabled
)]
24
[InlineData(KnownResourceCommands.StopCommand, "Running", ResourceCommandState.
Enabled
)]
33
[InlineData(KnownResourceCommands.RestartCommand, "Running", ResourceCommandState.
Enabled
)]
WithHttpCommandTests.cs (5)
375
if (commandState == ResourceCommandState.
Enabled
)
404
Assert.Equal(ResourceCommandState.
Enabled
, commandState);
430
return enableCommand ? ResourceCommandState.
Enabled
: ResourceCommandState.Hidden;
444
if (commandState == ResourceCommandState.
Enabled
)
474
Assert.Equal(ResourceCommandState.
Enabled
, commandState);