15 instantiations of UpdateCommandStateContext
Aspire.Hosting (2)
ApplicationModel\ResourceNotificationService.cs (2)
1112var newState = annotation.UpdateState(new UpdateCommandStateContext { ResourceSnapshot = previousState, Services = _serviceProvider }); 1155var state = annotation.UpdateState(new UpdateCommandStateContext { ResourceSnapshot = previousState, Services = serviceProvider });
Aspire.Hosting.Blazor.Tests (3)
BlazorHostedExtensionsTests.cs (1)
546return new()
WithBlazorAppTests.cs (2)
250var context = new UpdateCommandStateContext 291var context = new UpdateCommandStateContext
Aspire.Hosting.DevTunnels.Tests (3)
DevTunnelResourceBuilderExtensionsTests.cs (3)
435var enabledState = command.UpdateState(new UpdateCommandStateContext 445var stoppedState = command.UpdateState(new UpdateCommandStateContext 456var unavailableState = command.UpdateState(new UpdateCommandStateContext
Aspire.Hosting.EntityFrameworkCore.Tests (4)
EFMigrationCommandsTests.cs (4)
207var state = command.UpdateState(new UpdateCommandStateContext 237var state = command.UpdateState(new UpdateCommandStateContext 268var state = command.UpdateState(new UpdateCommandStateContext 288var state = command.UpdateState(new UpdateCommandStateContext
Aspire.Hosting.Maui.Tests (1)
MauiBuildQueueTests.cs (1)
762return new()
Aspire.Hosting.Tests (2)
ResourceCommandAnnotationTests.cs (2)
59var state = startCommand.UpdateState(new UpdateCommandStateContext 139var state = rebuildCommand.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)
2981Func<UpdateCommandStateContext, ResourceCommandState>? updateState = null,
Aspire.Hosting.Azure (1)
AzureProvisioningController.cs (1)
932internal ResourceCommandState GetResourceCommandState(string resourceName, AzureResourceCommand command, UpdateCommandStateContext context)
Aspire.Hosting.Azure.Kusto (2)
AzureKustoBuilderExtensions.cs (2)
357static ResourceCommandState UpdateStateDesktop(UpdateCommandStateContext context) 368static ResourceCommandState UpdateStateWeb(IResourceBuilder<AzureKustoClusterResource> resourceBuilder, UpdateCommandStateContext context)
Aspire.Hosting.Blazor.Tests (3)
BlazorHostedExtensionsTests.cs (1)
544private static UpdateCommandStateContext CreateRunningCommandStateContext()
WithBlazorAppTests.cs (2)
250var context = new UpdateCommandStateContext 291var context = new UpdateCommandStateContext
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
789private static ResourceCommandState GetCommandState(UpdateCommandStateContext _, EFMigrationResource migrationResource)
Aspire.Hosting.Maui.Tests (1)
MauiBuildQueueTests.cs (1)
760private static UpdateCommandStateContext CreateUpdateStateContext(BuildQueueTestEnvironment env, string? state)