422 references to PublishUpdateAsync
Aspire.Hosting (24)
ApplicationModel\CommandsConfigurationExtensions.cs (4)
290await resourceNotificationService.PublishUpdateAsync(projectResource, s => s with 304await resourceNotificationService.PublishUpdateAsync(projectResource, s => s with 357await resourceNotificationService.PublishUpdateAsync(projectResource, s => s with 369await resourceNotificationService.PublishUpdateAsync(projectResource, s => s with
ApplicationModel\CustomResourceSnapshotExtensions.cs (1)
21/// This method is intended for use with <see cref="ResourceNotificationService.PublishUpdateAsync(IResource, Func{CustomResourceSnapshot, CustomResourceSnapshot})"/>
ApplicationModel\ResourceNotificationService.cs (2)
660return PublishUpdateAsync(resource, s => 678return PublishUpdateAsync(resource, s => s with
Ats\NotificationExports.cs (1)
99return notificationService.PublishUpdateAsync(resource.Resource, snapshot =>
ConnectionStringBuilderExtensions.cs (2)
96await evt.Notifications.PublishUpdateAsync(r, s => s with 110await evt.Notifications.PublishUpdateAsync(r, s => s with
DotnetToolResourceExtensions.cs (1)
109await rns.PublishUpdateAsync(resource, x => x with
ExternalServiceBuilderExtensions.cs (3)
145await e.Notifications.PublishUpdateAsync(resource, snapshot => snapshot with 157await e.Notifications.PublishUpdateAsync(resource, snapshot => snapshot with 170await e.Notifications.PublishUpdateAsync(resource, snapshot => snapshot with
Health\ResourceHealthCheckService.cs (2)
197await resourceNotificationService.PublishUpdateAsync(resource, s => 286await resourceNotificationService.PublishUpdateAsync(resource, s => s with
Lifecycle\TerminalHostFailureDiagnosticService.cs (1)
109await notifications.PublishUpdateAsync(host, s => s with { IsHidden = false })
Orchestrator\ApplicationOrchestrator.cs (6)
104await _notificationService.PublishUpdateAsync(resourceWithConnectionString, state => state with 215await _notificationService.PublishUpdateAsync(resource, s => s with { Urls = [.. urls] }).ConfigureAwait(false); 287: notificationService.PublishUpdateAsync(resource, stateFactory); 620await _notificationService.PublishUpdateAsync(context.Resource, s => s with { State = stateSnapshot }).ConfigureAwait(false); 689await _notificationService.PublishUpdateAsync(child, s => s with 717await _notificationService.PublishUpdateAsync(resource, s =>
Orchestrator\ParameterProcessor.cs (1)
957await notificationService.PublishUpdateAsync(parameterResource, s =>
Aspire.Hosting.Azure (13)
AzureProvisioningController.cs (3)
3771await notificationService.PublishUpdateAsync(resource, state => ApplyActiveOperationProperties(resource, state)).ConfigureAwait(false); 3811await notificationService.PublishUpdateAsync(targetResource, state => ApplyActiveOperationProperties(targetResource, stateFactory(state))).ConfigureAwait(false); 4307await notificationService.PublishUpdateAsync(azureEnvironmentResource, existingState => ApplyActiveOperationProperties(azureEnvironmentResource, existingState with
Provisioning\Provisioners\BicepProvisioner.cs (10)
128await notificationService.PublishUpdateAsync(resource, state => 330await notificationService.PublishUpdateAsync(resource, state => state with 444await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 530await notificationService.PublishUpdateAsync(resource, state => state with 552await notificationService.PublishUpdateAsync(resource, state => 586await notificationService.PublishUpdateAsync(resource, state => 659await notificationService.PublishUpdateAsync(resource, state => state with 690await notificationService.PublishUpdateAsync(resource, state => 821await notificationService.PublishUpdateAsync(resource, state => 989await notificationService.PublishUpdateAsync(resource, state =>
Aspire.Hosting.Azure.EntraId (2)
EntraIdResourceExtensions.cs (2)
256await evt.Notifications.PublishUpdateAsync(resource, snapshot => snapshot with 314return evt.Notifications.PublishUpdateAsync(resource, snapshot => snapshot with
Aspire.Hosting.Azure.EntraId.Tests (9)
EntraIdInitializationTests.cs (9)
248await notifications.PublishUpdateAsync(entra.Resource, snapshot => snapshot with { State = new("Missing subscription configuration", KnownResourceStateStyles.Error) }); 274await notifications.PublishUpdateAsync(entra.Resource, snapshot => snapshot); 283await notifications.PublishUpdateAsync(entra.Resource, snapshot => snapshot with { State = KnownResourceStates.Waiting }); 287await notifications.PublishUpdateAsync(entra.Resource, snapshot => snapshot with { State = KnownResourceStates.Running }); 316await notifications.PublishUpdateAsync(entra.Resource, snapshot => snapshot with 332await notifications.PublishUpdateAsync(entra.Resource, snapshot => snapshot with { State = KnownResourceStates.Waiting }); 369await notifications.PublishUpdateAsync(entra.Resource, snapshot => snapshot); 437await notifications.PublishUpdateAsync(entra.Resource, snapshot => snapshot with 499await notifications.PublishUpdateAsync(resource, snapshot => snapshot);
Aspire.Hosting.Azure.Functions (1)
DurableTask\DurableTaskResourceExtensions.cs (1)
240await notifications.PublishUpdateAsync(r, snapshot => snapshot with
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
314await rns.PublishUpdateAsync(databaseResource, state => state with
Aspire.Hosting.Azure.Tests (61)
AzureBicepProvisionerTests.cs (1)
1360await notifications.PublishUpdateAsync(resource, state => state with
AzureEnvironmentResourceExtensionsTests.cs (60)
99await notifications.PublishUpdateAsync(directory.Resource, snapshot => snapshot with 626await notifications.PublishUpdateAsync(environmentResource, state => state with 635await notifications.PublishUpdateAsync(storage.Resource, state => state with 1024await notifications.PublishUpdateAsync(keyVault.Resource, state => state with { State = KnownResourceStates.Running }); 1059await notifications.PublishUpdateAsync(postgres.Resource, state => state with { State = KnownResourceStates.Running }); 1682await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = new("Waiting for Deployment", KnownResourceStateStyles.Info) }); 1737await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = new("Creating ARM Deployment", KnownResourceStateStyles.Info) }); 1814await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = new(AzureProvisioningController.WaitingForDeploymentState, KnownResourceStateStyles.Info) }); 1984await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 2022await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 2105await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = new("Failed to Provision", KnownResourceStateStyles.Error) }); 2106await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running }); 2200await notifications.PublishUpdateAsync(keyVault.Resource, state => state with { State = new("Failed to Provision", KnownResourceStateStyles.Error) }); 2269await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running }); 2270await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 2271await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running }); 2348await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 2416await notifications.PublishUpdateAsync(storage.Resource, state => state with 2423await notifications.PublishUpdateAsync(storage2.Resource, state => state with 2491await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 2492await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running }); 2544await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running }); 2545await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 2546await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running }); 2605await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running }); 2606await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 3022await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running }); 3023await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 3024await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running }); 3096await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = new("Failed to Provision", KnownResourceStateStyles.Error) }); 3097await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running }); 3150await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 3210await notifications.PublishUpdateAsync(visibleResource, state => state with { State = KnownResourceStates.Running }); 3265await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 3338await notifications.PublishUpdateAsync(storage.Resource, state => state with 3398await notifications.PublishUpdateAsync(storage.Resource, state => state with 3471await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 3524await notifications.PublishUpdateAsync(storage.Resource, state => state with 3587await notifications.PublishUpdateAsync(storage.Resource, state => state with 3659await notifications.PublishUpdateAsync(storage.Resource, state => state with 3716await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 3717await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running }); 3931await notifications.PublishUpdateAsync(storage.Resource, state => state with 4074await notifications.PublishUpdateAsync(storage2, state => state with 4161await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 4233await notifications.PublishUpdateAsync(keyVault.Resource, state => state with { State = new("Canceled", KnownResourceStateStyles.Info) }); 4313await notifications.PublishUpdateAsync(keyVault.Resource, state => state with { State = new("Canceled", KnownResourceStateStyles.Info) }); 4387await notifications.PublishUpdateAsync(postgres.Resource, state => state with { State = KnownResourceStates.Running }); 4439await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 4485await notifications.PublishUpdateAsync(keyVault.Resource, state => state with { State = KnownResourceStates.Running }); 4531await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 4645await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running }); 4646await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 4698await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running }); 4699await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 4756await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running }); 4757await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 4758await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running }); 4800await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running }); 4801await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running });
Aspire.Hosting.Blazor (4)
BlazorGatewayExtensions.cs (1)
530await notificationService.PublishUpdateAsync(reg.AppBuilder.Resource, snapshot => snapshot with
BrowserDebuggerHelper.cs (3)
197await notificationService.PublishUpdateAsync(commandTarget.Resource, s => s).ConfigureAwait(false); 256await notificationService.PublishUpdateAsync(commandTarget.Resource, s => s).ConfigureAwait(false); 324await resourceNotificationService.PublishUpdateAsync(commandTargetResource, s => s).ConfigureAwait(false);
Aspire.Hosting.Blazor.Tests (5)
BrowserDebuggerHelperTests.cs (5)
27await notificationService.PublishUpdateAsync( 40await notificationService.PublishUpdateAsync( 59await notificationService.PublishUpdateAsync( 73await notificationService.PublishUpdateAsync( 96await notificationService.PublishUpdateAsync(
Aspire.Hosting.Browsers (2)
BrowserLogsBuilderExtensions.cs (1)
292notifications.PublishUpdateAsync(browserLogsResource, snapshot => snapshot);
BrowserLogsConfigurationManager.cs (1)
421return resourceNotificationService.PublishUpdateAsync(resource, snapshot => snapshot with
Aspire.Hosting.Browsers.Tests (3)
BrowserLogsBuilderExtensionsTests.cs (1)
1352await app.ResourceNotifications.PublishUpdateAsync(web.Resource, snapshot => snapshot with
src\Aspire.Hosting.Browsers\BrowserLogsBuilderExtensions.cs (1)
292notifications.PublishUpdateAsync(browserLogsResource, snapshot => snapshot);
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (1)
421return resourceNotificationService.PublishUpdateAsync(resource, snapshot => snapshot with
Aspire.Hosting.DevTunnels (7)
DevTunnelMonitor.cs (2)
615await _notifications.PublishUpdateAsync(_resource, snapshot => WithConnectionHealth(snapshot, _resource.Name, healthy, description)).ConfigureAwait(false); 683return _notifications.PublishUpdateAsync(port, snapshot => snapshot with
DevTunnelResourceBuilderExtensions.cs (5)
199await notifications.PublishUpdateAsync(portResource, snapshot => snapshot with 726await notifications.PublishUpdateAsync(portResource, snapshot => 743await notifications.PublishUpdateAsync(portResource, snapshot => 811await notifications.PublishUpdateAsync(portResource, snapshot => snapshot with 832await notifications.PublishUpdateAsync(portResource, snapshot => stoppedSnapshot = snapshot with
Aspire.Hosting.DevTunnels.Tests (7)
DevTunnelMonitorTests.cs (6)
183await test.App.ResourceNotifications.PublishUpdateAsync(test.Port, s => s with 207await test.App.ResourceNotifications.PublishUpdateAsync(test.Port, s => s with 257async (_, _) => await test.App.ResourceNotifications.PublishUpdateAsync(test.Port, s => s with 316await test.App.ResourceNotifications.PublishUpdateAsync(test.Port, s => s with 348await test.App.ResourceNotifications.PublishUpdateAsync(test.Port, s => s with 479await test.App.ResourceNotifications.PublishUpdateAsync(test.Tunnel, s => s with { State = KnownResourceStates.FailedToStart });
TestDevTunnelMonitor.cs (1)
60await App.ResourceNotifications.PublishUpdateAsync(Tunnel, s => s with { State = KnownResourceStates.Running });
Aspire.Hosting.Dotnet.Tests (24)
DotnetProjectBuildCoordinatorTests.cs (24)
225await app.ResourceNotifications.PublishUpdateAsync( 242await app.ResourceNotifications.PublishUpdateAsync( 441await app.ResourceNotifications.PublishUpdateAsync( 1434await app.ResourceNotifications.PublishUpdateAsync( 1693await app.ResourceNotifications.PublishUpdateAsync( 1793await app.ResourceNotifications.PublishUpdateAsync( 1808await app.ResourceNotifications.PublishUpdateAsync( 1923await app.ResourceNotifications.PublishUpdateAsync( 2052await app.ResourceNotifications.PublishUpdateAsync( 2094await app.ResourceNotifications.PublishUpdateAsync( 3295await app.ResourceNotifications.PublishUpdateAsync(builds[0], snapshot => snapshot with 3300await app.ResourceNotifications.PublishUpdateAsync(builds[1], snapshot => snapshot with 3393await app.ResourceNotifications.PublishUpdateAsync(build, snapshot => snapshot with 3401await app.ResourceNotifications.PublishUpdateAsync(build, snapshot => snapshot with 3408await app.ResourceNotifications.PublishUpdateAsync(build, snapshot => snapshot with 3415await app.ResourceNotifications.PublishUpdateAsync(build, snapshot => snapshot with 3451await app.ResourceNotifications.PublishUpdateAsync(build, snapshot => snapshot with 3473await app.ResourceNotifications.PublishUpdateAsync(build, snapshot => snapshot with 3478await app.ResourceNotifications.PublishUpdateAsync(rebuilder, snapshot => snapshot with 3486await app.ResourceNotifications.PublishUpdateAsync(rebuilder, snapshot => snapshot with 3493await app.ResourceNotifications.PublishUpdateAsync(rebuilder, snapshot => snapshot with 3535await app.ResourceNotifications.PublishUpdateAsync(finalBuild, snapshot => snapshot with 3568await app.ResourceNotifications.PublishUpdateAsync( 3594await app.ResourceNotifications.PublishUpdateAsync(
Aspire.Hosting.EntityFrameworkCore (8)
EFResourceBuilderExtensions.cs (8)
516await notificationService.PublishUpdateAsync(toolResource, s => s with 552await notificationService.PublishUpdateAsync(toolResource, s => s with 564await notificationService.PublishUpdateAsync(toolResource, s => s with 576await notificationService.PublishUpdateAsync(toolResource, s => s with 594await notificationService.PublishUpdateAsync(toolResource, s => s with 631await notificationService.PublishUpdateAsync(toolResource, s => s with 656await notificationService.PublishUpdateAsync(toolResource, s => s with 980resourceNotificationService.PublishUpdateAsync(migrationResource, s => s with
Aspire.Hosting.EntityFrameworkCore.Tests (1)
TestServices\TestEfTool.cs (1)
34await context.Services.GetRequiredService<ResourceNotificationService>().PublishUpdateAsync(
Aspire.Hosting.Foundry (20)
FoundryExtensions.cs (9)
349await rns.PublishUpdateAsync(resource, state => state with 369await rns.PublishUpdateAsync(resource, state => state with 377await rns.PublishUpdateAsync(resource, state => state with 409await rns.PublishUpdateAsync(deployment, state => state with 428await rns.PublishUpdateAsync(deployment, state => state with 447await rns.PublishUpdateAsync(deployment, state => state with 457await rns.PublishUpdateAsync(deployment, state => state with 465await rns.PublishUpdateAsync(deployment, state => state with 476await rns.PublishUpdateAsync(deployment, state => state with
PromptAgent\AzurePromptAgentResource.cs (6)
331await notificationService.PublishUpdateAsync(tool, s => s with 337await notificationService.PublishUpdateAsync(this, s => s with 344await notificationService.PublishUpdateAsync(this, s => s with 358await notificationService.PublishUpdateAsync(tool, s => s with 367await notificationService.PublishUpdateAsync(this, s => s with 380await notificationService.PublishUpdateAsync(this, s => s with
Toolbox\FoundryToolboxResource.cs (5)
333await notificationService.PublishUpdateAsync(this, snapshot => snapshot with 343await notificationService.PublishUpdateAsync(this, snapshot => snapshot with 355await notificationService.PublishUpdateAsync(this, snapshot => snapshot with 380await notificationService.PublishUpdateAsync(this, snapshot => snapshot with 404await notificationService.PublishUpdateAsync(this, snapshot => snapshot with
Aspire.Hosting.Foundry.Tests (1)
ToolboxTests.cs (1)
927await notifications.PublishUpdateAsync(mcp.Resource, snapshot => snapshot with
Aspire.Hosting.Go.Tests (1)
GoRunDebuggingTests.cs (1)
265await app.Services.GetRequiredService<ResourceNotificationService>().PublishUpdateAsync(go.Resource, snapshot => snapshot with
Aspire.Hosting.Maui (6)
Lifecycle\MauiBuildQueueEventSubscriber.cs (3)
113await notificationService.PublishUpdateAsync(resource, s => s with 125await notificationService.PublishUpdateAsync(resource, s => s with 578await notificationService.PublishUpdateAsync(resource, s =>
Lifecycle\UnsupportedPlatformEventSubscriber.cs (1)
34await notificationService.PublishUpdateAsync(resource, s => s with
Utilities\MauiAndroidEnvironmentAnnotation.cs (1)
107await notificationService.PublishUpdateAsync(resource, s => s with
Utilities\MauiiOSEnvironmentAnnotation.cs (1)
107await notificationService.PublishUpdateAsync(resource, s => s with
Aspire.Hosting.Maui.Tests (12)
MauiBuildQueueTests.cs (7)
580await env.NotificationService.PublishUpdateAsync(env.Android, s => s with 647await env.NotificationService.PublishUpdateAsync(env.Android, s => s with 668await env.NotificationService.PublishUpdateAsync(env.Android, s => s with 717await env.NotificationService.PublishUpdateAsync(env.Android, s => s with 735await env.NotificationService.PublishUpdateAsync(env.Android, s => s with 743await env.NotificationService.PublishUpdateAsync(env.Android, s => s with 915await env.NotificationService.PublishUpdateAsync(env.Android, s => s with
MauiPlatformExtensionsTests.cs (5)
922.PublishUpdateAsync(dashboard.Resource, snapshot => snapshot with 1219.PublishUpdateAsync(dashboard.Resource, snapshot => snapshot with 1239.PublishUpdateAsync(dashboard.Resource, snapshot => snapshot with 1330await notificationService.PublishUpdateAsync(dashboard.Resource, snapshot => snapshot with 1346await notificationService.PublishUpdateAsync(dashboard.Resource, snapshot => snapshot with
Aspire.Hosting.MongoDB (7)
ReplicaSet\MongoDBReplicaSetBuilderExtensions.cs (7)
116await evt.Notifications.PublishUpdateAsync(resource, s => s with 134await evt.Notifications.PublishUpdateAsync(resource, s => s with 359await evt.Notifications.PublishUpdateAsync(resource, s => s with 367await evt.Notifications.PublishUpdateAsync(resource, s => s with 491.PublishUpdateAsync(builder.Resource, s => 507.PublishUpdateAsync(builder.Resource, s => 529.PublishUpdateAsync(builder.Resource, s =>
Aspire.Hosting.MongoDB.Tests (2)
ReplicaSet\AddMongoDBReplicaSetTests.cs (1)
336await notifications.PublishUpdateAsync(replicaSet.Resource, snapshot => snapshot with
tests\Shared\ContainerReplCommandTestBase.cs (1)
76await notifications.PublishUpdateAsync(resource.Resource, snapshot => snapshot with
Aspire.Hosting.MySql.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
76await notifications.PublishUpdateAsync(resource.Resource, snapshot => snapshot with
Aspire.Hosting.OpenAI (2)
OpenAIExtensions.cs (2)
84await evt.Notifications.PublishUpdateAsync(r, s => s with 130await evt.Notifications.PublishUpdateAsync(r, s => s with
Aspire.Hosting.PostgreSQL.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
76await notifications.PublishUpdateAsync(resource.Resource, snapshot => snapshot with
Aspire.Hosting.Redis.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
76await notifications.PublishUpdateAsync(resource.Resource, snapshot => snapshot with
Aspire.Hosting.SqlServer.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
76await notifications.PublishUpdateAsync(resource.Resource, snapshot => snapshot with
Aspire.Hosting.Testing.Tests (4)
DashboardUrlTests.cs (2)
110await app.ResourceNotifications.PublishUpdateAsync( 139await app.ResourceNotifications.PublishUpdateAsync(
ResourceLoggerForwarderServiceTests.cs (2)
56await resourceNotificationService.PublishUpdateAsync(myresource, snapshot => snapshot with { State = "Running" }); 106await resourceNotificationService.PublishUpdateAsync(myresource, snapshot => snapshot with { State = "Running" });
Aspire.Hosting.Tests (176)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (27)
181await notificationService.PublishUpdateAsync(custom.Resource, s => s with 346await notificationService.PublishUpdateAsync(custom.Resource, s => s with 398await notificationService.PublishUpdateAsync(custom.Resource, s => s with 445await notificationService.PublishUpdateAsync(owner.Resource, s => s with 494await notificationService.PublishUpdateAsync(owner.Resource, s => s with 556await notificationService.PublishUpdateAsync(owner.Resource, s => s with 585await notificationService.PublishUpdateAsync(owner.Resource, s => s with 632await notificationService.PublishUpdateAsync(owner.Resource, s => s with 659await notificationService.PublishUpdateAsync(owner.Resource, s => s with 702await notificationService.PublishUpdateAsync(owner.Resource, s => s with 730await notificationService.PublishUpdateAsync(owner.Resource, s => s with 773await notificationService.PublishUpdateAsync(owner.Resource, s => s with 798await notificationService.PublishUpdateAsync(owner.Resource, s => s with 862await notificationService.PublishUpdateAsync(mcpResource.Resource, s => s with 866await notificationService.PublishUpdateAsync(owner.Resource, s => s with 922await notificationService.PublishUpdateAsync(owner.Resource, s => s with 1075await notificationService.PublishUpdateAsync(owner.Resource, s => s with 1138await notificationService.PublishUpdateAsync(owner.Resource, s => s with 1154await notificationService.PublishUpdateAsync(owner.Resource, s => s with 1191await notificationService.PublishUpdateAsync(custom.Resource, s => s with 1263await notificationService.PublishUpdateAsync(custom.Resource, s => s with 1299await notificationService.PublishUpdateAsync(custom.Resource, s => s with 1339await notificationService.PublishUpdateAsync(custom.Resource, s => s with 1398await notificationService.PublishUpdateAsync(custom.Resource, s => s with 1434await notificationService.PublishUpdateAsync(custom.Resource, s => s with 1987await notificationService.PublishUpdateAsync(hidden.Resource, snapshot => snapshot with 2211await notificationService.PublishUpdateAsync(dashboard, snapshot => snapshot with
Codespaces\CodespacesUrlRewriterTests.cs (1)
73await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with
Dashboard\DashboardEventHandlersTests.cs (2)
64await resourceNotificationService.PublishUpdateAsync(dashboardResource, s => s).DefaultTimeout(); 135await resourceNotificationService.PublishUpdateAsync(dashboardResource, s => s).DefaultTimeout();
Dashboard\DashboardServiceDataTerminalTests.cs (4)
37await notifications.PublishUpdateAsync(resource, s => s with { State = new ResourceStateSnapshot("Running", null) }).DefaultTimeout(); 52await notifications.PublishUpdateAsync(resource, s => s with { State = new ResourceStateSnapshot("Running", null) }).DefaultTimeout(); 67await notifications.PublishUpdateAsync(resource, s => s with { State = new ResourceStateSnapshot("Running", null) }).DefaultTimeout(); 130await notifications.PublishUpdateAsync(resource, s => s with { State = new ResourceStateSnapshot("Running", null) }).DefaultTimeout();
Dashboard\DashboardServiceTests.cs (4)
210await resourceNotificationService.PublishUpdateAsync(testResource, s => 315await resourceNotificationService.PublishUpdateAsync(testResource, s => 374await resourceNotificationService.PublishUpdateAsync(testResource, s => 437await resourceNotificationService.PublishUpdateAsync(testResource, s =>
Health\ResourceHealthCheckServiceTests.cs (23)
33await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 41await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 73await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 81await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 116await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 124await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 163await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 178await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 186await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 229await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 270await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 313await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 349await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 380await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 442await app.ResourceNotifications.PublishUpdateAsync(parent.Resource, s => s with 487await app.ResourceNotifications.PublishUpdateAsync(parent.Resource, s => s with 538await app.ResourceNotifications.PublishUpdateAsync(parent.Resource, s => s with 546await app.ResourceNotifications.PublishUpdateAsync(child.Resource, s => s with 582await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 590await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 628await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 636await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 668await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with
Lifecycle\TerminalHostFailureDiagnosticServiceTests.cs (6)
32await notifications.PublishUpdateAsync(host, s => s with 71await notifications.PublishUpdateAsync(host, s => s with 102await notifications.PublishUpdateAsync(host, s => s with 143await notifications.PublishUpdateAsync(host, s => s with 181await notifications.PublishUpdateAsync(host, s => s with 196await notifications.PublishUpdateAsync(host, s => s with
Orchestrator\ApplicationOrchestratorTests.cs (3)
958await resourceNotificationService.PublishUpdateAsync(waiter.Resource, s => s with { State = KnownResourceStates.Starting }).DefaultTimeout(); 1018await resourceNotificationService.PublishUpdateAsync(waiter.Resource, s => s with { State = KnownResourceStates.Starting }); 1151await @event.Notifications.PublishUpdateAsync(resource, s => s with
ResourceNotificationTests.cs (81)
87await notificationService.PublishUpdateAsync(resource, state => state).DefaultTimeout(); 122await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout(); 124await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout(); 153await notificationService.PublishUpdateAsync(resource, snapshot => 200await notificationService.PublishUpdateAsync(resource1, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout(); 202await notificationService.PublishUpdateAsync(resource2, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout(); 241await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 257await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 272await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 287await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout(); 309await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = KnownResourceStates.Running }).DefaultTimeout(); 331await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout(); 357await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout(); 374await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 425await notificationService.PublishUpdateAsync(dependency1, s => s with 438await notificationService.PublishUpdateAsync(dependency2, s => s with 462await notificationService.PublishUpdateAsync(dependency, s => s with 489await notificationService.PublishUpdateAsync(dependency1, s => s with 494await notificationService.PublishUpdateAsync(dependency2, s => s with 529await notificationService.PublishUpdateAsync(dependency1, s => 547await notificationService.PublishUpdateAsync(dependency2, s => 585await notificationService.PublishUpdateAsync(dependency1, s => s with 599await notificationService.PublishUpdateAsync(dependency2, s => s with 623await notificationService.PublishUpdateAsync(resource, s => s with 639await notificationService.PublishUpdateAsync(dependency, s => s with 666await notificationService.PublishUpdateAsync(resource, s => s with { State = state }).DefaultTimeout(); 671await notificationService.PublishUpdateAsync(dependency, s => s with 719await notificationService.PublishUpdateAsync(dependency, s => s with 749await notificationService.PublishUpdateAsync(dependency, s => s with 774await notificationService.PublishUpdateAsync(resource, s => s with 789await notificationService.PublishUpdateAsync(dependency, s => s with 828await notificationService.PublishUpdateAsync(dependency, s => s with 891await notificationService.PublishUpdateAsync(resource, s => s with 900await notificationService.PublishUpdateAsync(resource, s => s with 916await notificationService.PublishUpdateAsync(dependency, s => s with 921await notificationService.PublishUpdateAsync(resource, s => s with 949await notificationService.PublishUpdateAsync(dependency, s => s with 1014await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 1025await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 1035await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "NewState" }).DefaultTimeout(); 1045await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = null }).DefaultTimeout(); 1055await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "" }).DefaultTimeout(); 1065await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = " " }).DefaultTimeout(); 1083await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { CreationTimeStamp = createdDate }).DefaultTimeout(); 1084await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 1085await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { ExitCode = 0 }).DefaultTimeout(); 1161await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1168await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1213await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1249await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1380await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1386await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1425await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1450await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1458await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1484await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1507await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1521await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1547await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1595await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1613await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1635await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1643await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1656await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1674await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1691await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1707await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1712await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1761await notificationService.PublishUpdateAsync(resourceBuilder.Resource, snapshot => snapshot with { State = state, ExitCode = exitCode }).DefaultTimeout(); 1805await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 1809await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 1814await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout(); 1870await notificationService.PublishUpdateAsync(resource, BuildSnapshot).DefaultTimeout(); 1874await notificationService.PublishUpdateAsync(resource, BuildSnapshot).DefaultTimeout(); 1879await notificationService.PublishUpdateAsync(resource, snapshot => BuildSnapshot(snapshot) with 1899await notificationService.PublishUpdateAsync(resource, static snapshot => snapshot).DefaultTimeout(); 1903await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1923await notificationService.PublishUpdateAsync(resource, static snapshot => snapshot).DefaultTimeout(); 1926await notificationService.PublishUpdateAsync(resource, snapshot => MutateProperty(snapshot, property)).DefaultTimeout(); 1942await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1955await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with
WaitForTests.cs (17)
111await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 142await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 182await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 220await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 331await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 365await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 373await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 412await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 420await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 460await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 507await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 562await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 616await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 767await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 831await notificationService.PublishUpdateAsync(dependency, s => s with 879await notificationService.PublishUpdateAsync(dependency.Resource, s => s with 973await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with
WithHttpCommandTests.cs (6)
627await app.ResourceNotifications.PublishUpdateAsync(serviceA.Resource, s => s with 950await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with 962await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with 1005await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with 1020await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with 1059await app.ResourceNotifications.PublishUpdateAsync(resource, s => s with
WithUrlsTests.cs (2)
94await e.Notifications.PublishUpdateAsync(custom, s => s with 101.PublishUpdateAsync(e.Resource, s => s with
Aspire.Hosting.Valkey.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
76await notifications.PublishUpdateAsync(resource.Resource, snapshot => snapshot with
CustomResources.AppHost (11)
TalkingClockResource.cs (9)
76await notification.PublishUpdateAsync(resource, s => s with 81await notification.PublishUpdateAsync(resource.TickHand, s => s with 86await notification.PublishUpdateAsync(resource.TockHand, s => s with 100await notification.PublishUpdateAsync(resource, 102await notification.PublishUpdateAsync(resource.TickHand, 104await notification.PublishUpdateAsync(resource.TockHand, 110await notification.PublishUpdateAsync(resource, 112await notification.PublishUpdateAsync(resource.TickHand, 114await notification.PublishUpdateAsync(resource.TockHand,
TestResource.cs (2)
54await notificationService.PublishUpdateAsync(resource, state => state with 65await notificationService.PublishUpdateAsync(resource, state => state with
HealthChecksSandbox.AppHost (1)
AppHost.cs (1)
135await notificationService.PublishUpdateAsync(
Stress.AppHost (2)
TestResource.cs (2)
168await notificationService.PublishUpdateAsync(resource, state => state with 179await notificationService.PublishUpdateAsync(resource, state => state with