1 write to UpdateState
Aspire.Hosting (1)
ApplicationModel\ResourceCommandAnnotation.cs (1)
77
UpdateState
= updateState;
28 references to UpdateState
Aspire.Hosting (3)
ApplicationModel\ResourceCommandAnnotation.cs (1)
359
/// Context for <see cref="ResourceCommandAnnotation.
UpdateState
"/>.
ApplicationModel\ResourceNotificationService.cs (2)
1181
var newState = annotation.
UpdateState
(new UpdateCommandStateContext { ResourceSnapshot = previousState, Services = _serviceProvider });
1224
var state = annotation.
UpdateState
(new UpdateCommandStateContext { ResourceSnapshot = previousState, Services = serviceProvider });
Aspire.Hosting.Azure.Tests (1)
AzureEnvironmentResourceExtensionsTests.cs (1)
170
Assert.Equal(ResourceCommandState.Enabled, delete.
UpdateState
(new UpdateCommandStateContext
Aspire.Hosting.Blazor.Tests (6)
BlazorHostedExtensionsTests.cs (3)
230
Assert.Equal(ResourceCommandState.Enabled, debugCommand.
UpdateState
(CreateRunningCommandStateContext()));
266
Assert.Equal(ResourceCommandState.Hidden, debugCommand.
UpdateState
(CreateRunningCommandStateContext()));
300
Assert.Equal(ResourceCommandState.Hidden, debugCommand.
UpdateState
(CreateRunningCommandStateContext()));
WithBlazorAppTests.cs (3)
262
Assert.Equal(expectedDebugState, commands["debug-in-browser"].
UpdateState
(context));
263
Assert.Equal(ResourceCommandState.Hidden, commands["stop-browser-debug"].
UpdateState
(context));
303
Assert.Equal(expectedState, command.
UpdateState
(context));
Aspire.Hosting.DevTunnels.Tests (3)
DevTunnelResourceBuilderExtensionsTests.cs (3)
576
var enabledState = command.
UpdateState
(new UpdateCommandStateContext
586
var stoppedState = command.
UpdateState
(new UpdateCommandStateContext
597
var unavailableState = command.
UpdateState
(new UpdateCommandStateContext
Aspire.Hosting.EntityFrameworkCore.Tests (4)
EFMigrationCommandsTests.cs (4)
209
var state = command.
UpdateState
(new UpdateCommandStateContext
239
var state = command.
UpdateState
(new UpdateCommandStateContext
270
var state = command.
UpdateState
(new UpdateCommandStateContext
290
var state = command.
UpdateState
(new UpdateCommandStateContext
Aspire.Hosting.Maui (1)
Lifecycle\MauiBuildQueueEventSubscriber.cs (1)
538
return originalStop.
UpdateState
(context);
Aspire.Hosting.Maui.Tests (2)
MauiBuildQueueTests.cs (2)
594
Assert.Equal(ResourceCommandState.Enabled, stopCommand.
UpdateState
(CreateUpdateStateContext(env, "Building")));
627
Assert.Equal(ResourceCommandState.Enabled, stopCommand.
UpdateState
(CreateUpdateStateContext(env, KnownResourceStates.Running)));
Aspire.Hosting.MongoDB.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
54
var result = command.
UpdateState
(new UpdateCommandStateContext
Aspire.Hosting.MySql.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
54
var result = command.
UpdateState
(new UpdateCommandStateContext
Aspire.Hosting.PostgreSQL.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
54
var result = command.
UpdateState
(new UpdateCommandStateContext
Aspire.Hosting.Redis.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
54
var result = command.
UpdateState
(new UpdateCommandStateContext
Aspire.Hosting.SqlServer.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
54
var result = command.
UpdateState
(new UpdateCommandStateContext
Aspire.Hosting.Tests (2)
ResourceCommandAnnotationTests.cs (2)
65
var state = startCommand.
UpdateState
(new UpdateCommandStateContext
145
var state = rebuildCommand.
UpdateState
(new UpdateCommandStateContext
Aspire.Hosting.Valkey.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
54
var result = command.
UpdateState
(new UpdateCommandStateContext