1 write to UpdateState
Aspire.Hosting (1)
ApplicationModel\ResourceCommandAnnotation.cs (1)
77
UpdateState
= updateState;
20 references to UpdateState
Aspire.Hosting (3)
ApplicationModel\ResourceCommandAnnotation.cs (1)
359
/// Context for <see cref="ResourceCommandAnnotation.
UpdateState
"/>.
ApplicationModel\ResourceNotificationService.cs (2)
1112
var newState = annotation.
UpdateState
(new UpdateCommandStateContext { ResourceSnapshot = previousState, Services = _serviceProvider });
1155
var state = annotation.
UpdateState
(new UpdateCommandStateContext { ResourceSnapshot = previousState, Services = serviceProvider });
Aspire.Hosting.Blazor.Tests (5)
BlazorHostedExtensionsTests.cs (2)
218
Assert.Equal(ResourceCommandState.Enabled, debugCommand.
UpdateState
(CreateRunningCommandStateContext()));
244
Assert.Equal(ResourceCommandState.Hidden, debugCommand.
UpdateState
(CreateRunningCommandStateContext()));
WithBlazorAppTests.cs (3)
261
Assert.Equal(expectedDebugState, commands["debug-in-browser"].
UpdateState
(context));
262
Assert.Equal(ResourceCommandState.Hidden, commands["stop-browser-debug"].
UpdateState
(context));
302
Assert.Equal(expectedState, command.
UpdateState
(context));
Aspire.Hosting.DevTunnels.Tests (3)
DevTunnelResourceBuilderExtensionsTests.cs (3)
435
var enabledState = command.
UpdateState
(new UpdateCommandStateContext
445
var stoppedState = command.
UpdateState
(new UpdateCommandStateContext
456
var unavailableState = command.
UpdateState
(new UpdateCommandStateContext
Aspire.Hosting.EntityFrameworkCore.Tests (4)
EFMigrationCommandsTests.cs (4)
207
var state = command.
UpdateState
(new UpdateCommandStateContext
237
var state = command.
UpdateState
(new UpdateCommandStateContext
268
var state = command.
UpdateState
(new UpdateCommandStateContext
288
var state = command.
UpdateState
(new UpdateCommandStateContext
Aspire.Hosting.Maui (1)
Lifecycle\MauiBuildQueueEventSubscriber.cs (1)
376
return originalStop.
UpdateState
(context);
Aspire.Hosting.Maui.Tests (2)
MauiBuildQueueTests.cs (2)
565
Assert.Equal(ResourceCommandState.Enabled, stopCommand.
UpdateState
(CreateUpdateStateContext(env, "Building")));
598
Assert.Equal(ResourceCommandState.Enabled, stopCommand.
UpdateState
(CreateUpdateStateContext(env, KnownResourceStates.Running)));
Aspire.Hosting.Tests (2)
ResourceCommandAnnotationTests.cs (2)
59
var state = startCommand.
UpdateState
(new UpdateCommandStateContext
139
var state = rebuildCommand.
UpdateState
(new UpdateCommandStateContext