24 instantiations of UpdateCommandStateContext
Aspire.Hosting (2)
ApplicationModel\ResourceNotificationService.cs (2)
1340var newState = annotation.UpdateState(new UpdateCommandStateContext { ResourceSnapshot = previousState, Services = _serviceProvider }); 1383var state = annotation.UpdateState(new UpdateCommandStateContext { ResourceSnapshot = previousState, Services = serviceProvider });
Aspire.Hosting.Azure.Tests (1)
AzureEnvironmentResourceExtensionsTests.cs (1)
171Assert.Equal(ResourceCommandState.Enabled, delete.UpdateState(new UpdateCommandStateContext
Aspire.Hosting.Blazor.Tests (3)
BlazorHostedExtensionsTests.cs (1)
602return new()
WithBlazorAppTests.cs (2)
251var context = new UpdateCommandStateContext 292var context = new UpdateCommandStateContext
Aspire.Hosting.DevTunnels.Tests (3)
DevTunnelResourceBuilderExtensionsTests.cs (3)
575var enabledState = command.UpdateState(new UpdateCommandStateContext 585var stoppedState = command.UpdateState(new UpdateCommandStateContext 596var unavailableState = command.UpdateState(new UpdateCommandStateContext
Aspire.Hosting.EntityFrameworkCore.Tests (4)
EFMigrationCommandsTests.cs (4)
209var state = command.UpdateState(new UpdateCommandStateContext 239var state = command.UpdateState(new UpdateCommandStateContext 270var state = command.UpdateState(new UpdateCommandStateContext 290var state = command.UpdateState(new UpdateCommandStateContext
Aspire.Hosting.Maui.Tests (1)
MauiBuildQueueTests.cs (1)
1159return new()
Aspire.Hosting.MongoDB.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
54var result = command.UpdateState(new UpdateCommandStateContext
Aspire.Hosting.MySql.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
54var result = command.UpdateState(new UpdateCommandStateContext
Aspire.Hosting.PostgreSQL.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
54var result = command.UpdateState(new UpdateCommandStateContext
Aspire.Hosting.Redis.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
54var result = command.UpdateState(new UpdateCommandStateContext
Aspire.Hosting.SqlServer.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
54var result = command.UpdateState(new UpdateCommandStateContext
Aspire.Hosting.Tests (4)
AddParameterTests.cs (1)
136Assert.Equal(ResourceCommandState.Enabled, start.UpdateState(new UpdateCommandStateContext
Orchestrator\ApplicationOrchestratorTests.cs (1)
1562Assert.Equal(ResourceCommandState.Enabled, start.UpdateState(new UpdateCommandStateContext
ResourceCommandAnnotationTests.cs (2)
68var state = startCommand.UpdateState(new UpdateCommandStateContext 148var state = rebuildCommand.UpdateState(new UpdateCommandStateContext
Aspire.Hosting.Valkey.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
54var result = command.UpdateState(new UpdateCommandStateContext
14 references to UpdateCommandStateContext
Aspire.Hosting (6)
ApplicationModel\CommandOptions.cs (1)
95public Func<UpdateCommandStateContext, ResourceCommandState>? UpdateState { get; set; }
ApplicationModel\ResourceCommandAnnotation.cs (4)
22Func<UpdateCommandStateContext, ResourceCommandState> updateState, 40Func<UpdateCommandStateContext, ResourceCommandState> updateState, 57Func<UpdateCommandStateContext, ResourceCommandState> updateState, 107public Func<UpdateCommandStateContext, ResourceCommandState> UpdateState { get; }
ResourceBuilderExtensions.cs (1)
3365Func<UpdateCommandStateContext, ResourceCommandState>? updateState = null,
Aspire.Hosting.Azure (1)
AzureProvisioningController.cs (1)
970internal ResourceCommandState GetResourceCommandState(string resourceName, AzureResourceCommand command, UpdateCommandStateContext context)
Aspire.Hosting.Azure.Kusto (2)
AzureKustoBuilderExtensions.cs (2)
382static ResourceCommandState UpdateStateDesktop(UpdateCommandStateContext context) 393static ResourceCommandState UpdateStateWeb(IResourceBuilder<AzureKustoClusterResource> resourceBuilder, UpdateCommandStateContext context)
Aspire.Hosting.Blazor.Tests (3)
BlazorHostedExtensionsTests.cs (1)
600private static UpdateCommandStateContext CreateRunningCommandStateContext()
WithBlazorAppTests.cs (2)
251var context = new UpdateCommandStateContext 292var context = new UpdateCommandStateContext
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
870private static ResourceCommandState GetCommandState(UpdateCommandStateContext _, EFMigrationResource migrationResource)
Aspire.Hosting.Maui.Tests (1)
MauiBuildQueueTests.cs (1)
1157private static UpdateCommandStateContext CreateUpdateStateContext(BuildQueueTestEnvironment env, string? state)