144 references to PublishUpdateAsync
Aspire.Hosting (18)
ApplicationModel\ResourceNotificationService.cs (2)
274
await
PublishUpdateAsync
(resource, s => s with { State = KnownResourceStates.Waiting }).ConfigureAwait(false);
330
await
PublishUpdateAsync
(resource, s => s with { State = KnownResourceStates.Waiting }).ConfigureAwait(false);
Ats\NotificationExports.cs (1)
85
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)
105
await rns.
PublishUpdateAsync
(resource, x => x with
ExternalServiceBuilderExtensions.cs (3)
124
await e.Notifications.
PublishUpdateAsync
(resource, snapshot => snapshot with
136
await e.Notifications.
PublishUpdateAsync
(resource, snapshot => snapshot with
149
await e.Notifications.
PublishUpdateAsync
(resource, snapshot => snapshot with
Health\ResourceHealthCheckService.cs (2)
185
await resourceNotificationService.
PublishUpdateAsync
(resource, s =>
266
await resourceNotificationService.
PublishUpdateAsync
(resource, s => s with
Orchestrator\ApplicationOrchestrator.cs (6)
85
await _notificationService.
PublishUpdateAsync
(resourceWithConnectionString, state => state with
147
await _notificationService.
PublishUpdateAsync
(resource, s => s with { Urls = [.. urls] }).ConfigureAwait(false);
205
: notificationService.
PublishUpdateAsync
(resource, stateFactory);
537
await _notificationService.
PublishUpdateAsync
(context.Resource, s => s with { State = KnownResourceStates.FailedToStart }).ConfigureAwait(false);
606
await _notificationService.
PublishUpdateAsync
(child, s => s with
634
await _notificationService.
PublishUpdateAsync
(resource, s =>
Orchestrator\ParameterProcessor.cs (1)
594
await notificationService.
PublishUpdateAsync
(parameterResource, s =>
Aspire.Hosting.Azure (9)
Provisioning\Provisioners\AzureProvisioner.cs (3)
45
await notificationService.
PublishUpdateAsync
(resource.AzureResource, stateFactory).ConfigureAwait(false);
52
await notificationService.
PublishUpdateAsync
(resource.Resource, stateFactory).ConfigureAwait(false);
73
await notificationService.
PublishUpdateAsync
(child, stateFactory).ConfigureAwait(false);
Provisioning\Provisioners\BicepProvisioner.cs (6)
93
await notificationService.
PublishUpdateAsync
(resource, state =>
130
await notificationService.
PublishUpdateAsync
(resource, state => state with
150
await notificationService.
PublishUpdateAsync
(resource, state =>
171
await notificationService.
PublishUpdateAsync
(resource, state =>
202
await notificationService.
PublishUpdateAsync
(resource, state =>
284
await notificationService.
PublishUpdateAsync
(resource, state =>
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
297
await rns.
PublishUpdateAsync
(databaseResource, state => state with
Aspire.Hosting.DevTunnels (5)
DevTunnelResourceBuilderExtensions.cs (5)
195
await notifications.
PublishUpdateAsync
(portResource, snapshot => snapshot with
689
await notifications.
PublishUpdateAsync
(portResource, snapshot => snapshot with
706
await notifications.
PublishUpdateAsync
(portResource, snapshot => snapshot with
733
await notifications.
PublishUpdateAsync
(portResource, snapshot => snapshot with
762
await notifications.
PublishUpdateAsync
(portResource, snapshot => stoppedSnapshot = snapshot with
Aspire.Hosting.Foundry (10)
FoundryExtensions.cs (10)
249
await rns.
PublishUpdateAsync
(resource, state => state with
267
await rns.
PublishUpdateAsync
(resource, state => state with
275
await rns.
PublishUpdateAsync
(resource, state => state with
305
await rns.
PublishUpdateAsync
(deployment, state => state with
327
await rns.
PublishUpdateAsync
(deployment, state => state with
332
await rns.
PublishUpdateAsync
(deployment, state => state with
341
await rns.
PublishUpdateAsync
(deployment, state => state with
351
await rns.
PublishUpdateAsync
(deployment, state => state with
360
await rns.
PublishUpdateAsync
(deployment, state => state with
368
await rns.
PublishUpdateAsync
(deployment, state => state with
Aspire.Hosting.GitHub.Models (1)
GitHubModelsExtensions.cs (1)
71
await evt.Notifications.
PublishUpdateAsync
(r, s => s with
Aspire.Hosting.Maui (3)
Lifecycle\UnsupportedPlatformEventSubscriber.cs (1)
34
await notificationService.
PublishUpdateAsync
(resource, s => s with
Utilities\MauiAndroidEnvironmentAnnotation.cs (1)
119
await notificationService.
PublishUpdateAsync
(resource, s => s with
Utilities\MauiiOSEnvironmentAnnotation.cs (1)
119
await notificationService.
PublishUpdateAsync
(resource, s => s with
Aspire.Hosting.OpenAI (2)
OpenAIExtensions.cs (2)
83
await evt.Notifications.
PublishUpdateAsync
(r, s => s with
128
await evt.Notifications.
PublishUpdateAsync
(r, s => s with
Aspire.Hosting.Testing.Tests (2)
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 (79)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
94
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
Codespaces\CodespacesUrlRewriterTests.cs (1)
73
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
Dashboard\DashboardLifecycleHookTests.cs (1)
51
await resourceNotificationService.
PublishUpdateAsync
(model.Resources.Single(), s => s).DefaultTimeout();
Dashboard\DashboardServiceTests.cs (1)
170
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
ResourceNotificationTests.cs (30)
80
await notificationService.
PublishUpdateAsync
(resource, state => state).DefaultTimeout();
115
await notificationService.
PublishUpdateAsync
(resource, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout();
117
await notificationService.
PublishUpdateAsync
(resource, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout();
168
await notificationService.
PublishUpdateAsync
(resource1, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout();
170
await notificationService.
PublishUpdateAsync
(resource2, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout();
209
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
225
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
239
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
255
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = KnownResourceStates.Running }).DefaultTimeout();
270
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout();
285
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout();
302
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
364
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
375
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
385
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "NewState" }).DefaultTimeout();
395
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = null }).DefaultTimeout();
405
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "" }).DefaultTimeout();
415
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = " " }).DefaultTimeout();
433
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { CreationTimeStamp = createdDate }).DefaultTimeout();
434
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
435
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { ExitCode = 0 }).DefaultTimeout();
511
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
518
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
563
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
599
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
627
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
633
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
672
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
697
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
705
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)
298
await app.ResourceNotifications.
PublishUpdateAsync
(serviceA.Resource, s => s with
419
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
431
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
474
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
489
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
528
await app.ResourceNotifications.
PublishUpdateAsync
(resource, s => s with
WithUrlsTests.cs (2)
572
await e.Notifications.
PublishUpdateAsync
(custom, s => s with
579
.
PublishUpdateAsync
(e.Resource, s => s 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)
Program.cs (1)
75
await notificationService.
PublishUpdateAsync
(
Stress.AppHost (2)
TestResource.cs (2)
73
await notificationService.
PublishUpdateAsync
(resource, state => state with
84
await notificationService.
PublishUpdateAsync
(resource, state => state with