22 instantiations of UpdateCommandStateContext
Aspire.Hosting (2)
ApplicationModel\ResourceNotificationService.cs (2)
1181var newState = annotation.UpdateState(new UpdateCommandStateContext { ResourceSnapshot = previousState, Services = _serviceProvider }); 1224var state = annotation.UpdateState(new UpdateCommandStateContext { ResourceSnapshot = previousState, Services = serviceProvider });
Aspire.Hosting.Azure.Tests (1)
AzureEnvironmentResourceExtensionsTests.cs (1)
170Assert.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)
576var enabledState = command.UpdateState(new UpdateCommandStateContext 586var stoppedState = command.UpdateState(new UpdateCommandStateContext 597var 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 (2)
ResourceCommandAnnotationTests.cs (2)
65var state = startCommand.UpdateState(new UpdateCommandStateContext 145var 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)
3372Func<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)
378static ResourceCommandState UpdateStateDesktop(UpdateCommandStateContext context) 389static 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)