5 writes to UpdateState
Aspire.Hosting (1)
ResourceBuilderExtensions.cs (1)
2172commandOptions.UpdateState = context => targetRunning ? ResourceCommandState.Enabled : ResourceCommandState.Disabled;
Aspire.Hosting.Azure.Kusto (2)
AzureKustoBuilderExtensions.cs (2)
322UpdateState = UpdateStateDesktop, 332UpdateState = context => UpdateStateWeb(resourceBuilder, context),
Aspire.Hosting.Tests (2)
Dashboard\DashboardServiceTests.cs (1)
159UpdateState = c => Aspire.Hosting.ApplicationModel.ResourceCommandState.Enabled,
WithHttpCommandTests.cs (1)
441UpdateState = usc =>
2 references to UpdateState
Aspire.Hosting (2)
ResourceBuilderExtensions.cs (2)
1912return builder.WithAnnotation(new ResourceCommandAnnotation(name, displayName, commandOptions.UpdateState ?? (c => ResourceCommandState.Enabled), executeCommand, commandOptions.Description, commandOptions.Parameter, commandOptions.ConfirmationMessage, commandOptions.IconName, commandOptions.IconVariant, commandOptions.IsHighlighted)); 2152if (commandOptions.UpdateState is null)