96 references to PublishUpdateAsync
Aspire.Hosting (11)
ApplicationModel\ResourceNotificationService.cs (2)
146
await
PublishUpdateAsync
(resource, s => s with { State = KnownResourceStates.Waiting }).ConfigureAwait(false);
311
await
PublishUpdateAsync
(resource, s => s with { State = KnownResourceStates.Waiting }).ConfigureAwait(false);
Health\ResourceHealthCheckService.cs (2)
181
await resourceNotificationService.
PublishUpdateAsync
(resource, s =>
263
await resourceNotificationService.
PublishUpdateAsync
(resource, s => s with
Orchestrator\ApplicationOrchestrator.cs (7)
129
await _notificationService.
PublishUpdateAsync
(resource, s => s with { Urls = [.. urls] }).ConfigureAwait(false);
173
: notificationService.
PublishUpdateAsync
(resource, stateFactory);
251
await _notificationService.
PublishUpdateAsync
(resource, s =>
262
await _notificationService.
PublishUpdateAsync
(resource, s =>
310
await _notificationService.
PublishUpdateAsync
(context.Resource, s => s with { State = KnownResourceStates.FailedToStart }).ConfigureAwait(false);
373
await _notificationService.
PublishUpdateAsync
(child, s => s with
397
await _notificationService.
PublishUpdateAsync
(resource, s =>
Aspire.Hosting.Azure (8)
Provisioning\Provisioners\AzureProvisioner.cs (2)
66
await notificationService.
PublishUpdateAsync
(resource.AzureResource, stateFactory).ConfigureAwait(false);
73
await notificationService.
PublishUpdateAsync
(resource.Resource, stateFactory).ConfigureAwait(false);
Provisioning\Provisioners\BicepProvisioner.cs (6)
91
await notificationService.
PublishUpdateAsync
(resource, state =>
132
await notificationService.
PublishUpdateAsync
(resource, state => state with
165
await notificationService.
PublishUpdateAsync
(resource, state =>
191
await notificationService.
PublishUpdateAsync
(resource, state =>
213
await notificationService.
PublishUpdateAsync
(resource, state =>
293
await notificationService.
PublishUpdateAsync
(resource, state =>
Aspire.Hosting.Testing.Tests (1)
ResourceLoggerForwarderServiceTests.cs (1)
88
await resourceNotificationService.
PublishUpdateAsync
(myresource, snapshot => snapshot with { State = "Running" });
Aspire.Hosting.Tests (62)
Codespaces\CodespacesUrlRewriterTests.cs (1)
74
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
Dashboard\DashboardLifecycleHookTests.cs (1)
50
await resourceNotificationService.
PublishUpdateAsync
(model.Resources.Single(), s => s).DefaultTimeout();
Dashboard\DashboardServiceTests.cs (1)
167
await resourceNotificationService.
PublishUpdateAsync
(testResource, s =>
Health\ResourceHealthCheckServiceTests.cs (21)
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
164
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
179
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
230
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
271
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
314
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
350
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
381
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
444
await app.ResourceNotifications.
PublishUpdateAsync
(parent.Resource, s => s with
490
await app.ResourceNotifications.
PublishUpdateAsync
(parent.Resource, s => s with
542
await app.ResourceNotifications.
PublishUpdateAsync
(parent.Resource, s => s with
550
await app.ResourceNotifications.
PublishUpdateAsync
(child.Resource, s => s with
586
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
594
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
632
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
640
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
ResourceNotificationTests.cs (20)
71
await notificationService.
PublishUpdateAsync
(resource, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout();
73
await notificationService.
PublishUpdateAsync
(resource, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout();
124
await notificationService.
PublishUpdateAsync
(resource1, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout();
126
await notificationService.
PublishUpdateAsync
(resource2, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout();
165
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
181
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
195
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
211
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = KnownResourceStates.Running }).DefaultTimeout();
226
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout();
241
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout();
258
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
320
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
331
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
341
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "NewState" }).DefaultTimeout();
351
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = null }).DefaultTimeout();
361
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "" }).DefaultTimeout();
371
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = " " }).DefaultTimeout();
389
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { CreationTimeStamp = createdDate }).DefaultTimeout();
390
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
391
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { ExitCode = 0 }).DefaultTimeout();
WaitForTests.cs (14)
109
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
140
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
180
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
218
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
329
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
363
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
371
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
410
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
418
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
458
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
505
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
560
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
614
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
765
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
WithHttpCommandTests.cs (4)
430
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
440
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
499
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
510
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
CustomResources.AppHost (11)
TalkingClockResource.cs (9)
55
await notification.
PublishUpdateAsync
(resource, s => s with
60
await notification.
PublishUpdateAsync
(resource.TickHand, s => s with
65
await notification.
PublishUpdateAsync
(resource.TockHand, s => s with
79
await notification.
PublishUpdateAsync
(resource,
81
await notification.
PublishUpdateAsync
(resource.TickHand,
83
await notification.
PublishUpdateAsync
(resource.TockHand,
89
await notification.
PublishUpdateAsync
(resource,
91
await notification.
PublishUpdateAsync
(resource.TickHand,
93
await notification.
PublishUpdateAsync
(resource.TockHand,
TestResource.cs (2)
49
await notificationService.
PublishUpdateAsync
(resource, state => state with
60
await notificationService.
PublishUpdateAsync
(resource, state => state with
HealthChecksSandbox.AppHost (1)
Program.cs (1)
74
await notificationService.
PublishUpdateAsync
(
Stress.AppHost (2)
TestResource.cs (2)
67
await notificationService.
PublishUpdateAsync
(resource, state => state with
78
await notificationService.
PublishUpdateAsync
(resource, state => state with