1 write to UpdateState
Aspire.Hosting (1)
ApplicationModel\ResourceCommandAnnotation.cs (1)
77UpdateState = updateState;
20 references to UpdateState
Aspire.Hosting (3)
ApplicationModel\ResourceCommandAnnotation.cs (1)
359/// Context for <see cref="ResourceCommandAnnotation.UpdateState"/>.
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 (5)
BlazorHostedExtensionsTests.cs (2)
218Assert.Equal(ResourceCommandState.Enabled, debugCommand.UpdateState(CreateRunningCommandStateContext())); 244Assert.Equal(ResourceCommandState.Hidden, debugCommand.UpdateState(CreateRunningCommandStateContext()));
WithBlazorAppTests.cs (3)
261Assert.Equal(expectedDebugState, commands["debug-in-browser"].UpdateState(context)); 262Assert.Equal(ResourceCommandState.Hidden, commands["stop-browser-debug"].UpdateState(context)); 302Assert.Equal(expectedState, command.UpdateState(context));
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 (1)
Lifecycle\MauiBuildQueueEventSubscriber.cs (1)
376return originalStop.UpdateState(context);
Aspire.Hosting.Maui.Tests (2)
MauiBuildQueueTests.cs (2)
565Assert.Equal(ResourceCommandState.Enabled, stopCommand.UpdateState(CreateUpdateStateContext(env, "Building"))); 598Assert.Equal(ResourceCommandState.Enabled, stopCommand.UpdateState(CreateUpdateStateContext(env, KnownResourceStates.Running)));
Aspire.Hosting.Tests (2)
ResourceCommandAnnotationTests.cs (2)
59var state = startCommand.UpdateState(new UpdateCommandStateContext 139var state = rebuildCommand.UpdateState(new UpdateCommandStateContext