451 references to PublishUpdateAsync
Aspire.Hosting (24)
ApplicationModel\CommandsConfigurationExtensions.cs (4)
290
await resourceNotificationService.
PublishUpdateAsync
(projectResource, s => s with
304
await resourceNotificationService.
PublishUpdateAsync
(projectResource, s => s with
357
await resourceNotificationService.
PublishUpdateAsync
(projectResource, s => s with
369
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)
660
return
PublishUpdateAsync
(resource, s =>
678
return
PublishUpdateAsync
(resource, s => s with
Ats\NotificationExports.cs (1)
99
return notificationService.
PublishUpdateAsync
(resource.Resource, snapshot =>
ConnectionStringBuilderExtensions.cs (2)
96
await evt.Notifications.
PublishUpdateAsync
(r, s => s with
110
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 =>
286
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
230
await _notificationService.
PublishUpdateAsync
(resource, s => s with { Urls = [.. urls] }).ConfigureAwait(false);
302
: notificationService.
PublishUpdateAsync
(resource, stateFactory);
687
await _notificationService.
PublishUpdateAsync
(context.Resource, s => s with { State = stateSnapshot }).ConfigureAwait(false);
756
await _notificationService.
PublishUpdateAsync
(child, s => s with
784
await _notificationService.
PublishUpdateAsync
(resource, s =>
Orchestrator\ParameterProcessor.cs (1)
993
await notificationService.
PublishUpdateAsync
(parameterResource, s =>
Aspire.Hosting.Azure (13)
AzureProvisioningController.cs (3)
3771
await notificationService.
PublishUpdateAsync
(resource, state => ApplyActiveOperationProperties(resource, state)).ConfigureAwait(false);
3811
await notificationService.
PublishUpdateAsync
(targetResource, state => ApplyActiveOperationProperties(targetResource, stateFactory(state))).ConfigureAwait(false);
4307
await notificationService.
PublishUpdateAsync
(azureEnvironmentResource, existingState => ApplyActiveOperationProperties(azureEnvironmentResource, existingState with
Provisioning\Provisioners\BicepProvisioner.cs (10)
128
await notificationService.
PublishUpdateAsync
(resource, state =>
330
await notificationService.
PublishUpdateAsync
(resource, state => state with
444
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
530
await notificationService.
PublishUpdateAsync
(resource, state => state with
552
await notificationService.
PublishUpdateAsync
(resource, state =>
586
await notificationService.
PublishUpdateAsync
(resource, state =>
659
await notificationService.
PublishUpdateAsync
(resource, state => state with
690
await notificationService.
PublishUpdateAsync
(resource, state =>
821
await notificationService.
PublishUpdateAsync
(resource, state =>
989
await notificationService.
PublishUpdateAsync
(resource, state =>
Aspire.Hosting.Azure.EntraId (2)
EntraIdResourceExtensions.cs (2)
256
await evt.Notifications.
PublishUpdateAsync
(resource, snapshot => snapshot with
314
return evt.Notifications.
PublishUpdateAsync
(resource, snapshot => snapshot with
Aspire.Hosting.Azure.EntraId.Tests (9)
EntraIdInitializationTests.cs (9)
248
await notifications.
PublishUpdateAsync
(entra.Resource, snapshot => snapshot with { State = new("Missing subscription configuration", KnownResourceStateStyles.Error) });
274
await notifications.
PublishUpdateAsync
(entra.Resource, snapshot => snapshot);
283
await notifications.
PublishUpdateAsync
(entra.Resource, snapshot => snapshot with { State = KnownResourceStates.Waiting });
287
await notifications.
PublishUpdateAsync
(entra.Resource, snapshot => snapshot with { State = KnownResourceStates.Running });
316
await notifications.
PublishUpdateAsync
(entra.Resource, snapshot => snapshot with
332
await notifications.
PublishUpdateAsync
(entra.Resource, snapshot => snapshot with { State = KnownResourceStates.Waiting });
369
await notifications.
PublishUpdateAsync
(entra.Resource, snapshot => snapshot);
437
await notifications.
PublishUpdateAsync
(entra.Resource, snapshot => snapshot with
499
await notifications.
PublishUpdateAsync
(resource, snapshot => snapshot);
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)
315
await rns.
PublishUpdateAsync
(databaseResource, state => state with
Aspire.Hosting.Azure.Tests (61)
AzureBicepProvisionerTests.cs (1)
1329
await notifications.
PublishUpdateAsync
(resource, state => state with
AzureEnvironmentResourceExtensionsTests.cs (60)
99
await notifications.
PublishUpdateAsync
(directory.Resource, snapshot => snapshot with
626
await notifications.
PublishUpdateAsync
(environmentResource, state => state with
635
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
1049
await notifications.
PublishUpdateAsync
(keyVault.Resource, state => state with { State = KnownResourceStates.Running });
1084
await notifications.
PublishUpdateAsync
(postgres.Resource, state => state with { State = KnownResourceStates.Running });
1707
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = new("Waiting for Deployment", KnownResourceStateStyles.Info) });
1762
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = new("Creating ARM Deployment", KnownResourceStateStyles.Info) });
1839
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = new(AzureProvisioningController.WaitingForDeploymentState, KnownResourceStateStyles.Info) });
2009
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
2047
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
2130
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = new("Failed to Provision", KnownResourceStateStyles.Error) });
2131
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
2225
await notifications.
PublishUpdateAsync
(keyVault.Resource, state => state with { State = new("Failed to Provision", KnownResourceStateStyles.Error) });
2294
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
2295
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
2296
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
2373
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
2441
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
2448
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with
2516
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
2517
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
2569
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
2570
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
2571
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
2630
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
2631
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
3047
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
3048
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
3049
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
3121
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = new("Failed to Provision", KnownResourceStateStyles.Error) });
3122
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
3175
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
3235
await notifications.
PublishUpdateAsync
(visibleResource, state => state with { State = KnownResourceStates.Running });
3290
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
3363
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
3423
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
3496
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
3549
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
3612
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
3684
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
3741
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
3742
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
3956
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
4099
await notifications.
PublishUpdateAsync
(storage2, state => state with
4186
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
4258
await notifications.
PublishUpdateAsync
(keyVault.Resource, state => state with { State = new("Canceled", KnownResourceStateStyles.Info) });
4338
await notifications.
PublishUpdateAsync
(keyVault.Resource, state => state with { State = new("Canceled", KnownResourceStateStyles.Info) });
4412
await notifications.
PublishUpdateAsync
(postgres.Resource, state => state with { State = KnownResourceStates.Running });
4464
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
4510
await notifications.
PublishUpdateAsync
(keyVault.Resource, state => state with { State = KnownResourceStates.Running });
4556
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
4670
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
4671
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
4723
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
4724
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
4781
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
4782
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
4783
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
4825
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
4826
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
Aspire.Hosting.Blazor (4)
BlazorGatewayExtensions.cs (1)
533
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)
197
await notifications.
PublishUpdateAsync
(portResource, snapshot => snapshot with
724
await notifications.
PublishUpdateAsync
(portResource, snapshot =>
748
await notifications.
PublishUpdateAsync
(portResource, snapshot =>
816
await notifications.
PublishUpdateAsync
(portResource, snapshot => snapshot with
837
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
317
async (_, _) => await test.App.ResourceNotifications.
PublishUpdateAsync
(test.Port, s => s with
376
await test.App.ResourceNotifications.
PublishUpdateAsync
(test.Port, s => s with
408
await test.App.ResourceNotifications.
PublishUpdateAsync
(test.Port, s => s with
539
await test.App.ResourceNotifications.
PublishUpdateAsync
(test.Tunnel, s => s with { State = KnownResourceStates.FailedToStart });
TestDevTunnelMonitor.cs (1)
61
await App.ResourceNotifications.
PublishUpdateAsync
(Tunnel, s => s with { State = KnownResourceStates.Running });
Aspire.Hosting.Dotnet.Tests (43)
DotnetProjectBuildCoordinatorTests.cs (43)
236
await app.ResourceNotifications.
PublishUpdateAsync
(
255
await app.ResourceNotifications.
PublishUpdateAsync
(
732
await app.ResourceNotifications.
PublishUpdateAsync
(
1719
await app.ResourceNotifications.
PublishUpdateAsync
(
1739
await app.ResourceNotifications.
PublishUpdateAsync
(
1770
await app.ResourceNotifications.
PublishUpdateAsync
(
1810
await app.ResourceNotifications.
PublishUpdateAsync
(
1847
await app.ResourceNotifications.
PublishUpdateAsync
(
1897
await app.ResourceNotifications.
PublishUpdateAsync
(
1907
await app.ResourceNotifications.
PublishUpdateAsync
(
1921
await app.ResourceNotifications.
PublishUpdateAsync
(
2019
await app.ResourceNotifications.
PublishUpdateAsync
(
2024
await app.ResourceNotifications.
PublishUpdateAsync
(
2060
await app.ResourceNotifications.
PublishUpdateAsync
(
2070
await app.ResourceNotifications.
PublishUpdateAsync
(
2079
await app.ResourceNotifications.
PublishUpdateAsync
(
2083
await app.ResourceNotifications.
PublishUpdateAsync
(
2125
await app.ResourceNotifications.
PublishUpdateAsync
(
2182
await app.ResourceNotifications.
PublishUpdateAsync
(
2190
await app.ResourceNotifications.
PublishUpdateAsync
(
2197
await app.ResourceNotifications.
PublishUpdateAsync
(
2282
await app.ResourceNotifications.
PublishUpdateAsync
(
2422
await app.ResourceNotifications.
PublishUpdateAsync
(
2681
await app.ResourceNotifications.
PublishUpdateAsync
(
2781
await app.ResourceNotifications.
PublishUpdateAsync
(
2796
await app.ResourceNotifications.
PublishUpdateAsync
(
2911
await app.ResourceNotifications.
PublishUpdateAsync
(
3042
await app.ResourceNotifications.
PublishUpdateAsync
(
3084
await app.ResourceNotifications.
PublishUpdateAsync
(
4285
await app.ResourceNotifications.
PublishUpdateAsync
(builds[0], snapshot => snapshot with
4290
await app.ResourceNotifications.
PublishUpdateAsync
(builds[1], snapshot => snapshot with
4383
await app.ResourceNotifications.
PublishUpdateAsync
(build, snapshot => snapshot with
4391
await app.ResourceNotifications.
PublishUpdateAsync
(build, snapshot => snapshot with
4398
await app.ResourceNotifications.
PublishUpdateAsync
(build, snapshot => snapshot with
4405
await app.ResourceNotifications.
PublishUpdateAsync
(build, snapshot => snapshot with
4441
await app.ResourceNotifications.
PublishUpdateAsync
(build, snapshot => snapshot with
4463
await app.ResourceNotifications.
PublishUpdateAsync
(build, snapshot => snapshot with
4468
await app.ResourceNotifications.
PublishUpdateAsync
(rebuilder, snapshot => snapshot with
4476
await app.ResourceNotifications.
PublishUpdateAsync
(rebuilder, snapshot => snapshot with
4483
await app.ResourceNotifications.
PublishUpdateAsync
(rebuilder, snapshot => snapshot with
4525
await app.ResourceNotifications.
PublishUpdateAsync
(finalBuild, snapshot => snapshot with
4558
await app.ResourceNotifications.
PublishUpdateAsync
(
4584
await app.ResourceNotifications.
PublishUpdateAsync
(
Aspire.Hosting.EntityFrameworkCore (8)
EFResourceBuilderExtensions.cs (8)
516
await notificationService.
PublishUpdateAsync
(toolResource, s => s with
552
await notificationService.
PublishUpdateAsync
(toolResource, s => s with
564
await notificationService.
PublishUpdateAsync
(toolResource, s => s with
576
await notificationService.
PublishUpdateAsync
(toolResource, s => s with
594
await notificationService.
PublishUpdateAsync
(toolResource, s => s with
631
await notificationService.
PublishUpdateAsync
(toolResource, s => s with
656
await notificationService.
PublishUpdateAsync
(toolResource, s => s with
980
resourceNotificationService.
PublishUpdateAsync
(migrationResource, s => s with
Aspire.Hosting.EntityFrameworkCore.Tests (2)
TestServices\CoordinatedBuildTestHelpers.cs (1)
21
await app.ResourceNotifications.
PublishUpdateAsync
(
TestServices\TestEfTool.cs (1)
41
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.Go.Tests (1)
GoRunDebuggingTests.cs (1)
265
await app.Services.GetRequiredService<ResourceNotificationService>().
PublishUpdateAsync
(go.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
582
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)
603
await env.NotificationService.
PublishUpdateAsync
(env.Android, s => s with
670
await env.NotificationService.
PublishUpdateAsync
(env.Android, s => s with
691
await env.NotificationService.
PublishUpdateAsync
(env.Android, s => s with
740
await env.NotificationService.
PublishUpdateAsync
(env.Android, s => s with
758
await env.NotificationService.
PublishUpdateAsync
(env.Android, s => s with
766
await env.NotificationService.
PublishUpdateAsync
(env.Android, s => s with
938
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)
118
await evt.Notifications.
PublishUpdateAsync
(resource, s => s with
136
await evt.Notifications.
PublishUpdateAsync
(resource, s => s with
340
await evt.Notifications.
PublishUpdateAsync
(resource, s => s with
348
await evt.Notifications.
PublishUpdateAsync
(resource, s => s with
472
.
PublishUpdateAsync
(builder.Resource, s =>
488
.
PublishUpdateAsync
(builder.Resource, s =>
510
.
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)
77
await notifications.
PublishUpdateAsync
(resource.Resource, snapshot => snapshot with
Aspire.Hosting.MySql.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
77
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 (2)
PostgresReplCommandTests.cs (1)
95
await app.ResourceNotifications.
PublishUpdateAsync
(postgres.Resource, s => s with { State = KnownResourceStates.FailedToStart });
tests\Shared\ContainerReplCommandTestBase.cs (1)
77
await notifications.
PublishUpdateAsync
(resource.Resource, snapshot => snapshot with
Aspire.Hosting.Redis.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
77
await notifications.
PublishUpdateAsync
(resource.Resource, snapshot => snapshot with
Aspire.Hosting.SqlServer.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
77
await notifications.
PublishUpdateAsync
(resource.Resource, snapshot => snapshot with
Aspire.Hosting.Testing.Tests (4)
DashboardUrlTests.cs (2)
110
await app.ResourceNotifications.
PublishUpdateAsync
(
137
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 (184)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (27)
182
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
351
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
403
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
450
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
499
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
561
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
590
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
637
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
664
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
707
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
735
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
778
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
803
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
867
await notificationService.
PublishUpdateAsync
(mcpResource.Resource, s => s with
871
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
927
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
1080
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
1143
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
1159
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
1196
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
1268
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
1304
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
1344
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
1403
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
1439
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
1992
await notificationService.
PublishUpdateAsync
(hidden.Resource, snapshot => snapshot with
2216
await notificationService.
PublishUpdateAsync
(dashboard, snapshot => snapshot with
Codespaces\CodespacesUrlRewriterTests.cs (1)
95
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 (4)
37
await notifications.
PublishUpdateAsync
(resource, s => s with { State = new ResourceStateSnapshot("Running", null) }).DefaultTimeout();
52
await notifications.
PublishUpdateAsync
(resource, s => s with { State = new ResourceStateSnapshot("Running", null) }).DefaultTimeout();
67
await notifications.
PublishUpdateAsync
(resource, s => s with { State = new ResourceStateSnapshot("Running", null) }).DefaultTimeout();
130
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 (23)
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
668
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)
1462
await resourceNotificationService.
PublishUpdateAsync
(waiter.Resource, s => s with { State = KnownResourceStates.Starting }).DefaultTimeout();
1522
await resourceNotificationService.
PublishUpdateAsync
(waiter.Resource, s => s with { State = KnownResourceStates.Starting });
1655
await @event.Notifications.
PublishUpdateAsync
(resource, s => s with
ResourceNotificationTests.cs (89)
87
await notificationService.
PublishUpdateAsync
(resource, state => state).DefaultTimeout();
113
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot).DefaultTimeout();
131
await notificationService.
PublishUpdateAsync
(resource.Resource, snapshot => snapshot with
148
await notificationService.
PublishUpdateAsync
(resource.Resource, snapshot => snapshot).DefaultTimeout();
160
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
167
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
190
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot).DefaultTimeout();
191
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
195
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
232
await notificationService.
PublishUpdateAsync
(resource, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout();
234
await notificationService.
PublishUpdateAsync
(resource, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout();
263
await notificationService.
PublishUpdateAsync
(resource, snapshot =>
310
await notificationService.
PublishUpdateAsync
(resource1, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout();
312
await notificationService.
PublishUpdateAsync
(resource2, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout();
351
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
367
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
382
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
397
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout();
419
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = KnownResourceStates.Running }).DefaultTimeout();
441
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout();
467
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout();
484
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
535
await notificationService.
PublishUpdateAsync
(dependency1, s => s with
548
await notificationService.
PublishUpdateAsync
(dependency2, s => s with
572
await notificationService.
PublishUpdateAsync
(dependency, s => s with
599
await notificationService.
PublishUpdateAsync
(dependency1, s => s with
604
await notificationService.
PublishUpdateAsync
(dependency2, s => s with
639
await notificationService.
PublishUpdateAsync
(dependency1, s =>
657
await notificationService.
PublishUpdateAsync
(dependency2, s =>
695
await notificationService.
PublishUpdateAsync
(dependency1, s => s with
709
await notificationService.
PublishUpdateAsync
(dependency2, s => s with
733
await notificationService.
PublishUpdateAsync
(resource, s => s with
749
await notificationService.
PublishUpdateAsync
(dependency, s => s with
776
await notificationService.
PublishUpdateAsync
(resource, s => s with { State = state }).DefaultTimeout();
781
await notificationService.
PublishUpdateAsync
(dependency, s => s with
829
await notificationService.
PublishUpdateAsync
(dependency, s => s with
859
await notificationService.
PublishUpdateAsync
(dependency, s => s with
884
await notificationService.
PublishUpdateAsync
(resource, s => s with
899
await notificationService.
PublishUpdateAsync
(dependency, s => s with
938
await notificationService.
PublishUpdateAsync
(dependency, s => s with
1001
await notificationService.
PublishUpdateAsync
(resource, s => s with
1010
await notificationService.
PublishUpdateAsync
(resource, s => s with
1026
await notificationService.
PublishUpdateAsync
(dependency, s => s with
1031
await notificationService.
PublishUpdateAsync
(resource, s => s with
1059
await notificationService.
PublishUpdateAsync
(dependency, s => s with
1124
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
1135
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
1145
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "NewState" }).DefaultTimeout();
1155
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = null }).DefaultTimeout();
1165
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "" }).DefaultTimeout();
1175
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = " " }).DefaultTimeout();
1193
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { CreationTimeStamp = createdDate }).DefaultTimeout();
1194
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
1195
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { ExitCode = 0 }).DefaultTimeout();
1271
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1278
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1323
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1359
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1490
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1496
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1535
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1560
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1568
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1594
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1617
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1631
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1657
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1705
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1723
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1745
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1753
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1766
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1784
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1801
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1817
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1822
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1871
await notificationService.
PublishUpdateAsync
(resourceBuilder.Resource, snapshot => snapshot with { State = state, ExitCode = exitCode }).DefaultTimeout();
1915
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
1919
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
1924
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout();
1980
await notificationService.
PublishUpdateAsync
(resource, BuildSnapshot).DefaultTimeout();
1984
await notificationService.
PublishUpdateAsync
(resource, BuildSnapshot).DefaultTimeout();
1989
await notificationService.
PublishUpdateAsync
(resource, snapshot => BuildSnapshot(snapshot) with
2009
await notificationService.
PublishUpdateAsync
(resource, static snapshot => snapshot).DefaultTimeout();
2013
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
2033
await notificationService.
PublishUpdateAsync
(resource, static snapshot => snapshot).DefaultTimeout();
2036
await notificationService.
PublishUpdateAsync
(resource, snapshot => MutateProperty(snapshot, property)).DefaultTimeout();
2052
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
2065
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
WaitForTests.cs (17)
111
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
142
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
182
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
220
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
331
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
365
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
373
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
412
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
420
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
460
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
507
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
562
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
616
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
767
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
831
await notificationService.
PublishUpdateAsync
(dependency, s => s with
879
await notificationService.
PublishUpdateAsync
(dependency.Resource, s => s with
973
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)
94
await e.Notifications.
PublishUpdateAsync
(custom, s => s with
101
.
PublishUpdateAsync
(e.Resource, s => s with
Aspire.Hosting.Valkey.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
77
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