422 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
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)
957
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)
314
await rns.
PublishUpdateAsync
(databaseResource, state => state with
Aspire.Hosting.Azure.Tests (61)
AzureBicepProvisionerTests.cs (1)
1360
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
1024
await notifications.
PublishUpdateAsync
(keyVault.Resource, state => state with { State = KnownResourceStates.Running });
1059
await notifications.
PublishUpdateAsync
(postgres.Resource, state => state with { State = KnownResourceStates.Running });
1682
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = new("Waiting for Deployment", KnownResourceStateStyles.Info) });
1737
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = new("Creating ARM Deployment", KnownResourceStateStyles.Info) });
1814
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = new(AzureProvisioningController.WaitingForDeploymentState, KnownResourceStateStyles.Info) });
1984
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
2022
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
2105
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = new("Failed to Provision", KnownResourceStateStyles.Error) });
2106
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
2200
await notifications.
PublishUpdateAsync
(keyVault.Resource, state => state with { State = new("Failed to Provision", KnownResourceStateStyles.Error) });
2269
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
2270
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
2271
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
2348
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
2416
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
2423
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with
2491
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
2492
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
2544
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
2545
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
2546
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
2605
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
2606
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
3022
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
3023
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
3024
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
3096
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = new("Failed to Provision", KnownResourceStateStyles.Error) });
3097
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
3150
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
3210
await notifications.
PublishUpdateAsync
(visibleResource, state => state with { State = KnownResourceStates.Running });
3265
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
3338
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
3398
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
3471
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
3524
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
3587
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
3659
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
3716
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
3717
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
3931
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with
4074
await notifications.
PublishUpdateAsync
(storage2, state => state with
4161
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
4233
await notifications.
PublishUpdateAsync
(keyVault.Resource, state => state with { State = new("Canceled", KnownResourceStateStyles.Info) });
4313
await notifications.
PublishUpdateAsync
(keyVault.Resource, state => state with { State = new("Canceled", KnownResourceStateStyles.Info) });
4387
await notifications.
PublishUpdateAsync
(postgres.Resource, state => state with { State = KnownResourceStates.Running });
4439
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
4485
await notifications.
PublishUpdateAsync
(keyVault.Resource, state => state with { State = KnownResourceStates.Running });
4531
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
4645
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
4646
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
4698
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
4699
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
4756
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
4757
await notifications.
PublishUpdateAsync
(storage.Resource, state => state with { State = KnownResourceStates.Running });
4758
await notifications.
PublishUpdateAsync
(storage2.Resource, state => state with { State = KnownResourceStates.Running });
4800
await notifications.
PublishUpdateAsync
(environmentResource, state => state with { State = KnownResourceStates.Running });
4801
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
(
1693
await app.ResourceNotifications.
PublishUpdateAsync
(
1793
await app.ResourceNotifications.
PublishUpdateAsync
(
1808
await app.ResourceNotifications.
PublishUpdateAsync
(
1923
await app.ResourceNotifications.
PublishUpdateAsync
(
2052
await app.ResourceNotifications.
PublishUpdateAsync
(
2094
await app.ResourceNotifications.
PublishUpdateAsync
(
3295
await app.ResourceNotifications.
PublishUpdateAsync
(builds[0], snapshot => snapshot with
3300
await app.ResourceNotifications.
PublishUpdateAsync
(builds[1], snapshot => snapshot with
3393
await app.ResourceNotifications.
PublishUpdateAsync
(build, snapshot => snapshot with
3401
await app.ResourceNotifications.
PublishUpdateAsync
(build, snapshot => snapshot with
3408
await app.ResourceNotifications.
PublishUpdateAsync
(build, snapshot => snapshot with
3415
await app.ResourceNotifications.
PublishUpdateAsync
(build, snapshot => snapshot with
3451
await app.ResourceNotifications.
PublishUpdateAsync
(build, snapshot => snapshot with
3473
await app.ResourceNotifications.
PublishUpdateAsync
(build, snapshot => snapshot with
3478
await app.ResourceNotifications.
PublishUpdateAsync
(rebuilder, snapshot => snapshot with
3486
await app.ResourceNotifications.
PublishUpdateAsync
(rebuilder, snapshot => snapshot with
3493
await app.ResourceNotifications.
PublishUpdateAsync
(rebuilder, snapshot => snapshot with
3535
await app.ResourceNotifications.
PublishUpdateAsync
(finalBuild, snapshot => snapshot with
3568
await app.ResourceNotifications.
PublishUpdateAsync
(
3594
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 (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.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
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
(
139
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 (176)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (27)
181
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
346
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
398
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
445
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
494
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
556
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
585
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
632
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
659
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
702
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
730
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
773
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
798
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
862
await notificationService.
PublishUpdateAsync
(mcpResource.Resource, s => s with
866
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
922
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
1075
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
1138
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
1154
await notificationService.
PublishUpdateAsync
(owner.Resource, s => s with
1191
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
1263
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
1299
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
1339
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
1398
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
1434
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
1987
await notificationService.
PublishUpdateAsync
(hidden.Resource, snapshot => snapshot with
2211
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 (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)
958
await resourceNotificationService.
PublishUpdateAsync
(waiter.Resource, s => s with { State = KnownResourceStates.Starting }).DefaultTimeout();
1018
await resourceNotificationService.
PublishUpdateAsync
(waiter.Resource, s => s with { State = KnownResourceStates.Starting });
1151
await @event.Notifications.
PublishUpdateAsync
(resource, s => s with
ResourceNotificationTests.cs (81)
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
462
await notificationService.
PublishUpdateAsync
(dependency, s => s with
489
await notificationService.
PublishUpdateAsync
(dependency1, s => s with
494
await notificationService.
PublishUpdateAsync
(dependency2, s => s with
529
await notificationService.
PublishUpdateAsync
(dependency1, s =>
547
await notificationService.
PublishUpdateAsync
(dependency2, s =>
585
await notificationService.
PublishUpdateAsync
(dependency1, s => s with
599
await notificationService.
PublishUpdateAsync
(dependency2, s => s with
623
await notificationService.
PublishUpdateAsync
(resource, s => s with
639
await notificationService.
PublishUpdateAsync
(dependency, s => s with
666
await notificationService.
PublishUpdateAsync
(resource, s => s with { State = state }).DefaultTimeout();
671
await notificationService.
PublishUpdateAsync
(dependency, s => s with
719
await notificationService.
PublishUpdateAsync
(dependency, s => s with
749
await notificationService.
PublishUpdateAsync
(dependency, s => s with
774
await notificationService.
PublishUpdateAsync
(resource, s => s with
789
await notificationService.
PublishUpdateAsync
(dependency, s => s with
828
await notificationService.
PublishUpdateAsync
(dependency, s => s with
891
await notificationService.
PublishUpdateAsync
(resource, s => s with
900
await notificationService.
PublishUpdateAsync
(resource, s => s with
916
await notificationService.
PublishUpdateAsync
(dependency, s => s with
921
await notificationService.
PublishUpdateAsync
(resource, s => s with
949
await notificationService.
PublishUpdateAsync
(dependency, s => s with
1014
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
1025
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
1035
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "NewState" }).DefaultTimeout();
1045
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = null }).DefaultTimeout();
1055
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "" }).DefaultTimeout();
1065
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = " " }).DefaultTimeout();
1083
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { CreationTimeStamp = createdDate }).DefaultTimeout();
1084
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
1085
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { ExitCode = 0 }).DefaultTimeout();
1161
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1168
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1213
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1249
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1380
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1386
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1425
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1450
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1458
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1484
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1507
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1521
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1547
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1595
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1613
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1635
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1643
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1656
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1674
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1691
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1707
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1712
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1761
await notificationService.
PublishUpdateAsync
(resourceBuilder.Resource, snapshot => snapshot with { State = state, ExitCode = exitCode }).DefaultTimeout();
1805
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
1809
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
1814
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout();
1870
await notificationService.
PublishUpdateAsync
(resource, BuildSnapshot).DefaultTimeout();
1874
await notificationService.
PublishUpdateAsync
(resource, BuildSnapshot).DefaultTimeout();
1879
await notificationService.
PublishUpdateAsync
(resource, snapshot => BuildSnapshot(snapshot) with
1899
await notificationService.
PublishUpdateAsync
(resource, static snapshot => snapshot).DefaultTimeout();
1903
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1923
await notificationService.
PublishUpdateAsync
(resource, static snapshot => snapshot).DefaultTimeout();
1926
await notificationService.
PublishUpdateAsync
(resource, snapshot => MutateProperty(snapshot, property)).DefaultTimeout();
1942
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
1955
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)
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