110 references to PublishUpdateAsync
Aspire.Hosting (12)
ApplicationModel\ResourceNotificationService.cs (2)
147
await
PublishUpdateAsync
(resource, s => s with { State = KnownResourceStates.Waiting }).ConfigureAwait(false);
312
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 (8)
67
await _notificationService.
PublishUpdateAsync
(resourceWithConnectionString, state => state with
129
await _notificationService.
PublishUpdateAsync
(resource, s => s with { Urls = [.. urls] }).ConfigureAwait(false);
189
: notificationService.
PublishUpdateAsync
(resource, stateFactory);
284
await _notificationService.
PublishUpdateAsync
(resourceWithoutLifetime, s =>
295
await _notificationService.
PublishUpdateAsync
(resourceWithoutLifetime, s =>
332
await _notificationService.
PublishUpdateAsync
(context.Resource, s => s with { State = KnownResourceStates.FailedToStart }).ConfigureAwait(false);
395
await _notificationService.
PublishUpdateAsync
(child, s => s with
420
await _notificationService.
PublishUpdateAsync
(resource, s =>
Aspire.Hosting.Azure (9)
Provisioning\Provisioners\AzureProvisioner.cs (3)
51
await notificationService.
PublishUpdateAsync
(resource.AzureResource, stateFactory).ConfigureAwait(false);
58
await notificationService.
PublishUpdateAsync
(resource.Resource, stateFactory).ConfigureAwait(false);
79
await notificationService.
PublishUpdateAsync
(child, stateFactory).ConfigureAwait(false);
Provisioning\Provisioners\BicepProvisioner.cs (6)
79
await notificationService.
PublishUpdateAsync
(resource, state =>
115
await notificationService.
PublishUpdateAsync
(resource, state => state with
134
await notificationService.
PublishUpdateAsync
(resource, state =>
154
await notificationService.
PublishUpdateAsync
(resource, state =>
180
await notificationService.
PublishUpdateAsync
(resource, state =>
260
await notificationService.
PublishUpdateAsync
(resource, state =>
Aspire.Hosting.Azure.AIFoundry (10)
AzureAIFoundryExtensions.cs (10)
145
await rns.
PublishUpdateAsync
(resource, state => state with
163
await rns.
PublishUpdateAsync
(resource, state => state with
171
await rns.
PublishUpdateAsync
(resource, state => state with
204
await rns.
PublishUpdateAsync
(deployment, state => state with
223
await rns.
PublishUpdateAsync
(deployment, state => state with
228
await rns.
PublishUpdateAsync
(deployment, state => state with
237
await rns.
PublishUpdateAsync
(deployment, state => state with
247
await rns.
PublishUpdateAsync
(deployment, state => state with
256
await rns.
PublishUpdateAsync
(deployment, state => state with
264
await rns.
PublishUpdateAsync
(deployment, state => state with
Aspire.Hosting.Testing.Tests (1)
ResourceLoggerForwarderServiceTests.cs (1)
88
await resourceNotificationService.
PublishUpdateAsync
(myresource, snapshot => snapshot with { State = "Running" });
Aspire.Hosting.Tests (64)
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)
169
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)
400
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
410
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
470
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
481
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
WithUrlsTests.cs (2)
437
await e.Notifications.
PublishUpdateAsync
(custom.Resource, s => s with
444
.
PublishUpdateAsync
(e.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