405 references to PublishUpdateAsync
Aspire.Hosting (25)
ApplicationModel\CommandsConfigurationExtensions.cs (5)
235
await resourceNotificationService.
PublishUpdateAsync
(projectResource, s =>
281
await resourceNotificationService.
PublishUpdateAsync
(projectResource, s => s with
295
await resourceNotificationService.
PublishUpdateAsync
(projectResource, s => s with
361
await resourceNotificationService.
PublishUpdateAsync
(projectResource, s => s with
373
await 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)
639
return
PublishUpdateAsync
(resource, s =>
657
return
PublishUpdateAsync
(resource, s => s with
Ats\NotificationExports.cs (1)
99
return notificationService.
PublishUpdateAsync
(resource.Resource, snapshot =>
ConnectionStringBuilderExtensions.cs (2)
97
await evt.Notifications.
PublishUpdateAsync
(r, s => s with
111
await evt.Notifications.
PublishUpdateAsync
(r, s => s with
DotnetToolResourceExtensions.cs (1)
109
await rns.
PublishUpdateAsync
(resource, x => x with
ExternalServiceBuilderExtensions.cs (3)
145
await e.Notifications.
PublishUpdateAsync
(resource, snapshot => snapshot with
157
await e.Notifications.
PublishUpdateAsync
(resource, snapshot => snapshot with
170
await e.Notifications.
PublishUpdateAsync
(resource, snapshot => snapshot with
Health\ResourceHealthCheckService.cs (2)
197
await resourceNotificationService.
PublishUpdateAsync
(resource, s =>
278
await resourceNotificationService.
PublishUpdateAsync
(resource, s => s with
Lifecycle\TerminalHostFailureDiagnosticService.cs (1)
109
await notifications.
PublishUpdateAsync
(host, s => s with { IsHidden = false })
Orchestrator\ApplicationOrchestrator.cs (6)
104
await _notificationService.
PublishUpdateAsync
(resourceWithConnectionString, state => state with
215
await _notificationService.
PublishUpdateAsync
(resource, s => s with { Urls = [.. urls] }).ConfigureAwait(false);
287
: notificationService.
PublishUpdateAsync
(resource, stateFactory);
620
await _notificationService.
PublishUpdateAsync
(context.Resource, s => s with { State = stateSnapshot }).ConfigureAwait(false);
689
await _notificationService.
PublishUpdateAsync
(child, s => s with
717
await _notificationService.
PublishUpdateAsync
(resource, s =>
Orchestrator\ParameterProcessor.cs (1)
931
await notificationService.
PublishUpdateAsync
(parameterResource, s =>
Aspire.Hosting.Azure (13)
AzureProvisioningController.cs (3)
3637
await notificationService.
PublishUpdateAsync
(resource, state => ApplyActiveOperationProperties(resource, state)).ConfigureAwait(false);
3677
await notificationService.
PublishUpdateAsync
(targetResource, state => ApplyActiveOperationProperties(targetResource, stateFactory(state))).ConfigureAwait(false);
4173
await notificationService.
PublishUpdateAsync
(azureEnvironmentResource, existingState => ApplyActiveOperationProperties(azureEnvironmentResource, existingState with
Provisioning\Provisioners\BicepProvisioner.cs (10)
127
await notificationService.
PublishUpdateAsync
(resource, state =>
329
await notificationService.
PublishUpdateAsync
(resource, state => state with
443
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
529
await notificationService.
PublishUpdateAsync
(resource, state => state with
551
await notificationService.
PublishUpdateAsync
(resource, state =>
580
await notificationService.
PublishUpdateAsync
(resource, state =>
653
await notificationService.
PublishUpdateAsync
(resource, state => state with
684
await notificationService.
PublishUpdateAsync
(resource, state =>
815
await notificationService.
PublishUpdateAsync
(resource, state =>
983
await notificationService.
PublishUpdateAsync
(resource, state =>
Aspire.Hosting.Azure.EntraId (2)
EntraIdResourceExtensions.cs (2)
170
await evt.Notifications.
PublishUpdateAsync
(resource, snapshot => snapshot with
222
return evt.Notifications.
PublishUpdateAsync
(resource, snapshot => snapshot with
Aspire.Hosting.Azure.EntraId.Tests (1)
EntraIdInitializationTests.cs (1)
259
await notifications.
PublishUpdateAsync
(entra.Resource, snapshot => snapshot with
Aspire.Hosting.Azure.Functions (1)
DurableTask\DurableTaskResourceExtensions.cs (1)
240
await notifications.
PublishUpdateAsync
(r, snapshot => snapshot with
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
314
await rns.
PublishUpdateAsync
(databaseResource, state => state with
Aspire.Hosting.Azure.Tests (60)
AzureBicepProvisionerTests.cs (1)
1259
await notifications.
PublishUpdateAsync
(resource, state => state with
AzureEnvironmentResourceExtensionsTests.cs (59)
327
await notifications.
PublishUpdateAsync
(environmentResource, state => state with
336
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
703
await notifications.
PublishUpdateAsync
(keyVault.Resource, state => state with { State = KnownResourceStates.Running });
738
await notifications.
PublishUpdateAsync
(postgres.Resource, state => state with { State = KnownResourceStates.Running });
1361
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = new("Waiting for Deployment", KnownResourceStateStyles.Info) });
1416
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = new("Creating ARM Deployment", KnownResourceStateStyles.Info) });
1493
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = new(AzureProvisioningController.WaitingForDeploymentState, KnownResourceStateStyles.Info) });
1663
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
1701
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
1784
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = new("Failed to Provision", KnownResourceStateStyles.Error) });
1785
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
1879
await notifications.
PublishUpdateAsync
(keyVault.Resource, state => state with { State = new("Failed to Provision", KnownResourceStateStyles.Error) });
1948
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
1949
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
1950
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
2027
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
2095
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
2102
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with
2170
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
2171
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
2223
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
2224
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
2225
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
2284
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
2285
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
2701
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
2702
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
2703
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
2775
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = new("Failed to Provision", KnownResourceStateStyles.Error) });
2776
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
2829
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
2889
await notifications.
PublishUpdateAsync
(visibleResource, state => state with { State = KnownResourceStates.Running });
2944
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
3017
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
3077
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
3150
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
3203
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
3266
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
3338
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
3395
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
3396
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
3610
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
3753
await notifications.
PublishUpdateAsync
(storage2, state => state with
3840
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
3912
await notifications.
PublishUpdateAsync
(keyVault.Resource, state => state with { State = new("Canceled", KnownResourceStateStyles.Info) });
3992
await notifications.
PublishUpdateAsync
(keyVault.Resource, state => state with { State = new("Canceled", KnownResourceStateStyles.Info) });
4066
await notifications.
PublishUpdateAsync
(postgres.Resource, state => state with { State = KnownResourceStates.Running });
4118
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
4164
await notifications.
PublishUpdateAsync
(keyVault.Resource, state => state with { State = KnownResourceStates.Running });
4210
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
4324
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
4325
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
4377
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
4378
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
4435
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
4436
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
4437
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
4479
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
4480
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
Aspire.Hosting.Blazor (4)
BlazorGatewayExtensions.cs (1)
530
await notificationService.
PublishUpdateAsync
(reg.AppBuilder.Resource, snapshot => snapshot with
BrowserDebuggerHelper.cs (3)
197
await notificationService.
PublishUpdateAsync
(commandTarget.Resource, s => s).ConfigureAwait(false);
256
await notificationService.
PublishUpdateAsync
(commandTarget.Resource, s => s).ConfigureAwait(false);
324
await resourceNotificationService.
PublishUpdateAsync
(commandTargetResource, s => s).ConfigureAwait(false);
Aspire.Hosting.Blazor.Tests (5)
BrowserDebuggerHelperTests.cs (5)
27
await notificationService.
PublishUpdateAsync
(
40
await notificationService.
PublishUpdateAsync
(
59
await notificationService.
PublishUpdateAsync
(
73
await notificationService.
PublishUpdateAsync
(
96
await notificationService.
PublishUpdateAsync
(
Aspire.Hosting.Browsers (2)
BrowserLogsBuilderExtensions.cs (1)
292
notifications.
PublishUpdateAsync
(browserLogsResource, snapshot => snapshot);
BrowserLogsConfigurationManager.cs (1)
421
return resourceNotificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
Aspire.Hosting.Browsers.Tests (3)
BrowserLogsBuilderExtensionsTests.cs (1)
1352
await app.ResourceNotifications.
PublishUpdateAsync
(web.Resource, snapshot => snapshot with
src\Aspire.Hosting.Browsers\BrowserLogsBuilderExtensions.cs (1)
292
notifications.
PublishUpdateAsync
(browserLogsResource, snapshot => snapshot);
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (1)
421
return resourceNotificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
Aspire.Hosting.DevTunnels (7)
DevTunnelMonitor.cs (2)
615
await _notifications.
PublishUpdateAsync
(_resource, snapshot => WithConnectionHealth(snapshot, _resource.Name, healthy, description)).ConfigureAwait(false);
683
return _notifications.
PublishUpdateAsync
(port, snapshot => snapshot with
DevTunnelResourceBuilderExtensions.cs (5)
199
await notifications.
PublishUpdateAsync
(portResource, snapshot => snapshot with
726
await notifications.
PublishUpdateAsync
(portResource, snapshot =>
743
await notifications.
PublishUpdateAsync
(portResource, snapshot =>
811
await notifications.
PublishUpdateAsync
(portResource, snapshot => snapshot with
832
await notifications.
PublishUpdateAsync
(portResource, snapshot => stoppedSnapshot = snapshot with
Aspire.Hosting.DevTunnels.Tests (7)
DevTunnelMonitorTests.cs (6)
183
await test.App.ResourceNotifications.
PublishUpdateAsync
(test.Port, s => s with
207
await test.App.ResourceNotifications.
PublishUpdateAsync
(test.Port, s => s with
257
async (_, _) => await test.App.ResourceNotifications.
PublishUpdateAsync
(test.Port, s => s with
316
await test.App.ResourceNotifications.
PublishUpdateAsync
(test.Port, s => s with
348
await test.App.ResourceNotifications.
PublishUpdateAsync
(test.Port, s => s with
479
await test.App.ResourceNotifications.
PublishUpdateAsync
(test.Tunnel, s => s with { State = KnownResourceStates.FailedToStart });
TestDevTunnelMonitor.cs (1)
60
await App.ResourceNotifications.
PublishUpdateAsync
(Tunnel, s => s with { State = KnownResourceStates.Running });
Aspire.Hosting.Dotnet.Tests (24)
DotnetProjectBuildCoordinatorTests.cs (24)
225
await app.ResourceNotifications.
PublishUpdateAsync
(
242
await app.ResourceNotifications.
PublishUpdateAsync
(
441
await app.ResourceNotifications.
PublishUpdateAsync
(
1434
await app.ResourceNotifications.
PublishUpdateAsync
(
1688
await app.ResourceNotifications.
PublishUpdateAsync
(
1788
await app.ResourceNotifications.
PublishUpdateAsync
(
1803
await app.ResourceNotifications.
PublishUpdateAsync
(
1918
await app.ResourceNotifications.
PublishUpdateAsync
(
2042
await app.ResourceNotifications.
PublishUpdateAsync
(
2079
await app.ResourceNotifications.
PublishUpdateAsync
(
3200
await app.ResourceNotifications.
PublishUpdateAsync
(builds[0], snapshot => snapshot with
3205
await app.ResourceNotifications.
PublishUpdateAsync
(builds[1], snapshot => snapshot with
3298
await app.ResourceNotifications.
PublishUpdateAsync
(build, snapshot => snapshot with
3306
await app.ResourceNotifications.
PublishUpdateAsync
(build, snapshot => snapshot with
3313
await app.ResourceNotifications.
PublishUpdateAsync
(build, snapshot => snapshot with
3320
await app.ResourceNotifications.
PublishUpdateAsync
(build, snapshot => snapshot with
3356
await app.ResourceNotifications.
PublishUpdateAsync
(build, snapshot => snapshot with
3378
await app.ResourceNotifications.
PublishUpdateAsync
(build, snapshot => snapshot with
3383
await app.ResourceNotifications.
PublishUpdateAsync
(rebuilder, snapshot => snapshot with
3391
await app.ResourceNotifications.
PublishUpdateAsync
(rebuilder, snapshot => snapshot with
3398
await app.ResourceNotifications.
PublishUpdateAsync
(rebuilder, snapshot => snapshot with
3440
await app.ResourceNotifications.
PublishUpdateAsync
(finalBuild, snapshot => snapshot with
3473
await app.ResourceNotifications.
PublishUpdateAsync
(
3494
await app.ResourceNotifications.
PublishUpdateAsync
(
Aspire.Hosting.EntityFrameworkCore (8)
EFResourceBuilderExtensions.cs (8)
521
await notificationService.
PublishUpdateAsync
(toolResource, s => s with
557
await notificationService.
PublishUpdateAsync
(toolResource, s => s with
569
await notificationService.
PublishUpdateAsync
(toolResource, s => s with
581
await notificationService.
PublishUpdateAsync
(toolResource, s => s with
599
await notificationService.
PublishUpdateAsync
(toolResource, s => s with
636
await notificationService.
PublishUpdateAsync
(toolResource, s => s with
661
await notificationService.
PublishUpdateAsync
(toolResource, s => s with
985
resourceNotificationService.
PublishUpdateAsync
(migrationResource, s => s with
Aspire.Hosting.EntityFrameworkCore.Tests (1)
TestServices\TestEfTool.cs (1)
34
await context.Services.GetRequiredService<ResourceNotificationService>().
PublishUpdateAsync
(
Aspire.Hosting.Foundry (20)
FoundryExtensions.cs (9)
349
await rns.
PublishUpdateAsync
(resource, state => state with
369
await rns.
PublishUpdateAsync
(resource, state => state with
377
await rns.
PublishUpdateAsync
(resource, state => state with
409
await rns.
PublishUpdateAsync
(deployment, state => state with
428
await rns.
PublishUpdateAsync
(deployment, state => state with
447
await rns.
PublishUpdateAsync
(deployment, state => state with
457
await rns.
PublishUpdateAsync
(deployment, state => state with
465
await rns.
PublishUpdateAsync
(deployment, state => state with
476
await rns.
PublishUpdateAsync
(deployment, state => state with
PromptAgent\AzurePromptAgentResource.cs (6)
331
await notificationService.
PublishUpdateAsync
(tool, s => s with
337
await notificationService.
PublishUpdateAsync
(this, s => s with
344
await notificationService.
PublishUpdateAsync
(this, s => s with
358
await notificationService.
PublishUpdateAsync
(tool, s => s with
367
await notificationService.
PublishUpdateAsync
(this, s => s with
380
await notificationService.
PublishUpdateAsync
(this, s => s with
Toolbox\FoundryToolboxResource.cs (5)
333
await notificationService.
PublishUpdateAsync
(this, snapshot => snapshot with
343
await notificationService.
PublishUpdateAsync
(this, snapshot => snapshot with
355
await notificationService.
PublishUpdateAsync
(this, snapshot => snapshot with
380
await notificationService.
PublishUpdateAsync
(this, snapshot => snapshot with
404
await notificationService.
PublishUpdateAsync
(this, snapshot => snapshot with
Aspire.Hosting.Foundry.Tests (1)
ToolboxTests.cs (1)
927
await notifications.
PublishUpdateAsync
(mcp.Resource, snapshot => snapshot with
Aspire.Hosting.Maui (6)
Lifecycle\MauiBuildQueueEventSubscriber.cs (3)
113
await notificationService.
PublishUpdateAsync
(resource, s => s with
125
await notificationService.
PublishUpdateAsync
(resource, s => s with
578
await notificationService.
PublishUpdateAsync
(resource, s =>
Lifecycle\UnsupportedPlatformEventSubscriber.cs (1)
34
await notificationService.
PublishUpdateAsync
(resource, s => s with
Utilities\MauiAndroidEnvironmentAnnotation.cs (1)
107
await notificationService.
PublishUpdateAsync
(resource, s => s with
Utilities\MauiiOSEnvironmentAnnotation.cs (1)
107
await notificationService.
PublishUpdateAsync
(resource, s => s with
Aspire.Hosting.Maui.Tests (12)
MauiBuildQueueTests.cs (7)
580
await env.NotificationService.
PublishUpdateAsync
(env.Android, s => s with
647
await env.NotificationService.
PublishUpdateAsync
(env.Android, s => s with
668
await env.NotificationService.
PublishUpdateAsync
(env.Android, s => s with
717
await env.NotificationService.
PublishUpdateAsync
(env.Android, s => s with
735
await env.NotificationService.
PublishUpdateAsync
(env.Android, s => s with
743
await env.NotificationService.
PublishUpdateAsync
(env.Android, s => s with
915
await 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
1330
await notificationService.
PublishUpdateAsync
(dashboard.Resource, snapshot => snapshot with
1346
await notificationService.
PublishUpdateAsync
(dashboard.Resource, snapshot => snapshot with
Aspire.Hosting.MongoDB (7)
ReplicaSet\MongoDBReplicaSetBuilderExtensions.cs (7)
116
await evt.Notifications.
PublishUpdateAsync
(resource, s => s with
134
await evt.Notifications.
PublishUpdateAsync
(resource, s => s with
359
await evt.Notifications.
PublishUpdateAsync
(resource, s => s with
367
await 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)
336
await notifications.
PublishUpdateAsync
(replicaSet.Resource, snapshot => snapshot with
tests\Shared\ContainerReplCommandTestBase.cs (1)
76
await notifications.
PublishUpdateAsync
(resource.Resource, snapshot => snapshot with
Aspire.Hosting.MySql.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
76
await notifications.
PublishUpdateAsync
(resource.Resource, snapshot => snapshot with
Aspire.Hosting.OpenAI (2)
OpenAIExtensions.cs (2)
84
await evt.Notifications.
PublishUpdateAsync
(r, s => s with
130
await evt.Notifications.
PublishUpdateAsync
(r, s => s with
Aspire.Hosting.PostgreSQL.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
76
await notifications.
PublishUpdateAsync
(resource.Resource, snapshot => snapshot with
Aspire.Hosting.Redis.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
76
await notifications.
PublishUpdateAsync
(resource.Resource, snapshot => snapshot with
Aspire.Hosting.SqlServer.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
76
await notifications.
PublishUpdateAsync
(resource.Resource, snapshot => snapshot with
Aspire.Hosting.Testing.Tests (4)
DashboardUrlTests.cs (2)
110
await app.ResourceNotifications.
PublishUpdateAsync
(
138
await app.ResourceNotifications.
PublishUpdateAsync
(
ResourceLoggerForwarderServiceTests.cs (2)
56
await resourceNotificationService.
PublishUpdateAsync
(myresource, snapshot => snapshot with { State = "Running" });
106
await resourceNotificationService.
PublishUpdateAsync
(myresource, snapshot => snapshot with { State = "Running" });
Aspire.Hosting.Tests (168)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (26)
181
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
346
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
403
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
452
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
514
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
543
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
590
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
617
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
660
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
688
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
731
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
756
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
820
await notificationService.
PublishUpdateAsync
(mcpResource.Resource, s => s with
824
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
880
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
1033
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
1096
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
1112
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
1149
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
1221
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
1257
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
1297
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
1356
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
1392
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
1945
await notificationService.
PublishUpdateAsync
(hidden.Resource, snapshot => snapshot with
2169
await notificationService.
PublishUpdateAsync
(dashboard, snapshot => snapshot with
Codespaces\CodespacesUrlRewriterTests.cs (1)
73
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
Dashboard\DashboardEventHandlersTests.cs (2)
64
await resourceNotificationService.
PublishUpdateAsync
(dashboardResource, s => s).DefaultTimeout();
135
await resourceNotificationService.
PublishUpdateAsync
(dashboardResource, s => s).DefaultTimeout();
Dashboard\DashboardServiceDataTerminalTests.cs (3)
35
await notifications.
PublishUpdateAsync
(resource, s => s with { State = new ResourceStateSnapshot("Running", null) }).DefaultTimeout();
50
await notifications.
PublishUpdateAsync
(resource, s => s with { State = new ResourceStateSnapshot("Running", null) }).DefaultTimeout();
110
await notifications.
PublishUpdateAsync
(resource, s => s with { State = new ResourceStateSnapshot("Running", null) }).DefaultTimeout();
Dashboard\DashboardServiceTests.cs (4)
210
await resourceNotificationService.
PublishUpdateAsync
(testResource, s =>
315
await resourceNotificationService.
PublishUpdateAsync
(testResource, s =>
374
await resourceNotificationService.
PublishUpdateAsync
(testResource, s =>
437
await resourceNotificationService.
PublishUpdateAsync
(testResource, s =>
Health\ResourceHealthCheckServiceTests.cs (22)
33
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
41
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
73
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
81
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
116
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
124
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
163
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
178
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
186
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
229
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
270
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
313
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
349
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
380
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
442
await app.ResourceNotifications.
PublishUpdateAsync
(parent.Resource, s => s with
487
await app.ResourceNotifications.
PublishUpdateAsync
(parent.Resource, s => s with
538
await app.ResourceNotifications.
PublishUpdateAsync
(parent.Resource, s => s with
546
await app.ResourceNotifications.
PublishUpdateAsync
(child.Resource, s => s with
582
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
590
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
628
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
636
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
Lifecycle\TerminalHostFailureDiagnosticServiceTests.cs (6)
32
await notifications.
PublishUpdateAsync
(host, s => s with
71
await notifications.
PublishUpdateAsync
(host, s => s with
102
await notifications.
PublishUpdateAsync
(host, s => s with
143
await notifications.
PublishUpdateAsync
(host, s => s with
181
await notifications.
PublishUpdateAsync
(host, s => s with
196
await notifications.
PublishUpdateAsync
(host, s => s with
Orchestrator\ApplicationOrchestratorTests.cs (3)
957
await resourceNotificationService.
PublishUpdateAsync
(waiter.Resource, s => s with { State = KnownResourceStates.Starting }).DefaultTimeout();
1017
await resourceNotificationService.
PublishUpdateAsync
(waiter.Resource, s => s with { State = KnownResourceStates.Starting });
1150
await @event.Notifications.
PublishUpdateAsync
(resource, s => s with
ResourceNotificationTests.cs (78)
87
await notificationService.
PublishUpdateAsync
(resource, state => state).DefaultTimeout();
122
await notificationService.
PublishUpdateAsync
(resource, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout();
124
await notificationService.
PublishUpdateAsync
(resource, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout();
153
await notificationService.
PublishUpdateAsync
(resource, snapshot =>
200
await notificationService.
PublishUpdateAsync
(resource1, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout();
202
await notificationService.
PublishUpdateAsync
(resource2, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout();
241
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
257
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
272
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
287
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout();
309
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = KnownResourceStates.Running }).DefaultTimeout();
331
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout();
357
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout();
374
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
425
await notificationService.
PublishUpdateAsync
(dependency1, s => s with
438
await notificationService.
PublishUpdateAsync
(dependency2, s => s with
473
await notificationService.
PublishUpdateAsync
(dependency1, s =>
491
await notificationService.
PublishUpdateAsync
(dependency2, s =>
529
await notificationService.
PublishUpdateAsync
(dependency1, s => s with
543
await notificationService.
PublishUpdateAsync
(dependency2, s => s with
567
await notificationService.
PublishUpdateAsync
(resource, s => s with
583
await notificationService.
PublishUpdateAsync
(dependency, s => s with
610
await notificationService.
PublishUpdateAsync
(resource, s => s with { State = state }).DefaultTimeout();
615
await notificationService.
PublishUpdateAsync
(dependency, s => s with
663
await notificationService.
PublishUpdateAsync
(dependency, s => s with
693
await notificationService.
PublishUpdateAsync
(dependency, s => s with
718
await notificationService.
PublishUpdateAsync
(resource, s => s with
733
await notificationService.
PublishUpdateAsync
(dependency, s => s with
772
await notificationService.
PublishUpdateAsync
(dependency, s => s with
835
await notificationService.
PublishUpdateAsync
(resource, s => s with
844
await notificationService.
PublishUpdateAsync
(resource, s => s with
860
await notificationService.
PublishUpdateAsync
(dependency, s => s with
865
await notificationService.
PublishUpdateAsync
(resource, s => s with
893
await notificationService.
PublishUpdateAsync
(dependency, s => s with
958
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
969
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
979
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "NewState" }).DefaultTimeout();
989
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = null }).DefaultTimeout();
999
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "" }).DefaultTimeout();
1009
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = " " }).DefaultTimeout();
1027
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { CreationTimeStamp = createdDate }).DefaultTimeout();
1028
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
1029
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { ExitCode = 0 }).DefaultTimeout();
1105
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1112
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1157
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1193
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1324
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1330
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1369
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1394
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1402
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1428
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1451
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1465
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1491
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1539
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1557
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1579
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1587
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1600
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1618
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1635
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1651
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1656
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1705
await notificationService.
PublishUpdateAsync
(resourceBuilder.Resource, snapshot => snapshot with { State = state, ExitCode = exitCode }).DefaultTimeout();
1749
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
1753
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
1758
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout();
1814
await notificationService.
PublishUpdateAsync
(resource, BuildSnapshot).DefaultTimeout();
1818
await notificationService.
PublishUpdateAsync
(resource, BuildSnapshot).DefaultTimeout();
1823
await notificationService.
PublishUpdateAsync
(resource, snapshot => BuildSnapshot(snapshot) with
1843
await notificationService.
PublishUpdateAsync
(resource, static snapshot => snapshot).DefaultTimeout();
1847
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1867
await notificationService.
PublishUpdateAsync
(resource, static snapshot => snapshot).DefaultTimeout();
1870
await notificationService.
PublishUpdateAsync
(resource, snapshot => MutateProperty(snapshot, property)).DefaultTimeout();
1886
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1899
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
WaitForTests.cs (15)
110
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
141
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
181
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
219
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
330
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
364
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
372
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
411
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
419
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
459
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
506
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
561
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
615
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
766
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
878
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
WithHttpCommandTests.cs (6)
627
await app.ResourceNotifications.
PublishUpdateAsync
(serviceA.Resource, s => s with
950
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
962
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
1005
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
1020
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
1059
await app.ResourceNotifications.
PublishUpdateAsync
(resource, s => s with
WithUrlsTests.cs (2)
590
await e.Notifications.
PublishUpdateAsync
(custom, s => s with
597
.
PublishUpdateAsync
(e.Resource, s => s with
Aspire.Hosting.Valkey.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
76
await notifications.
PublishUpdateAsync
(resource.Resource, snapshot => snapshot with
CustomResources.AppHost (11)
TalkingClockResource.cs (9)
76
await notification.
PublishUpdateAsync
(resource, s => s with
81
await notification.
PublishUpdateAsync
(resource.TickHand, s => s with
86
await notification.
PublishUpdateAsync
(resource.TockHand, s => s with
100
await notification.
PublishUpdateAsync
(resource,
102
await notification.
PublishUpdateAsync
(resource.TickHand,
104
await notification.
PublishUpdateAsync
(resource.TockHand,
110
await notification.
PublishUpdateAsync
(resource,
112
await notification.
PublishUpdateAsync
(resource.TickHand,
114
await notification.
PublishUpdateAsync
(resource.TockHand,
TestResource.cs (2)
54
await notificationService.
PublishUpdateAsync
(resource, state => state with
65
await notificationService.
PublishUpdateAsync
(resource, state => state with
HealthChecksSandbox.AppHost (1)
AppHost.cs (1)
135
await notificationService.
PublishUpdateAsync
(
Stress.AppHost (2)
TestResource.cs (2)
168
await notificationService.
PublishUpdateAsync
(resource, state => state with
179
await notificationService.
PublishUpdateAsync
(resource, state => state with