124 references to PublishUpdateAsync
Aspire.Hosting (18)
ApplicationModel\ResourceNotificationService.cs (2)
255
await
PublishUpdateAsync
(resource, s => s with { State = KnownResourceStates.Waiting }).ConfigureAwait(false);
307
await
PublishUpdateAsync
(resource, s => s with { State = KnownResourceStates.Waiting }).ConfigureAwait(false);
ConnectionStringBuilderExtensions.cs (2)
96
await evt.Notifications.
PublishUpdateAsync
(r, s => s with
110
await evt.Notifications.
PublishUpdateAsync
(r, s => s with
ExternalServiceBuilderExtensions.cs (3)
121
await e.Notifications.
PublishUpdateAsync
(resource, snapshot => snapshot with
133
await e.Notifications.
PublishUpdateAsync
(resource, snapshot => snapshot with
146
await e.Notifications.
PublishUpdateAsync
(resource, snapshot => snapshot with
Health\ResourceHealthCheckService.cs (2)
181
await resourceNotificationService.
PublishUpdateAsync
(resource, s =>
263
await resourceNotificationService.
PublishUpdateAsync
(resource, s => s with
Orchestrator\ApplicationOrchestrator.cs (6)
69
await _notificationService.
PublishUpdateAsync
(resourceWithConnectionString, state => state with
131
await _notificationService.
PublishUpdateAsync
(resource, s => s with { Urls = [.. urls] }).ConfigureAwait(false);
191
: notificationService.
PublishUpdateAsync
(resource, stateFactory);
330
await _notificationService.
PublishUpdateAsync
(context.Resource, s => s with { State = KnownResourceStates.FailedToStart }).ConfigureAwait(false);
393
await _notificationService.
PublishUpdateAsync
(child, s => s with
421
await _notificationService.
PublishUpdateAsync
(resource, s =>
Orchestrator\ParameterProcessor.cs (3)
68
await notificationService.
PublishUpdateAsync
(parameterResource, s =>
105
await notificationService.
PublishUpdateAsync
(parameterResource, s =>
188
await notificationService.
PublishUpdateAsync
(parameter, 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)
80
await notificationService.
PublishUpdateAsync
(resource, state =>
117
await notificationService.
PublishUpdateAsync
(resource, state => state with
136
await notificationService.
PublishUpdateAsync
(resource, state =>
156
await notificationService.
PublishUpdateAsync
(resource, state =>
195
await notificationService.
PublishUpdateAsync
(resource, state =>
281
await notificationService.
PublishUpdateAsync
(resource, state =>
Aspire.Hosting.Azure.AIFoundry (10)
AzureAIFoundryExtensions.cs (10)
207
await rns.
PublishUpdateAsync
(resource, state => state with
225
await rns.
PublishUpdateAsync
(resource, state => state with
233
await rns.
PublishUpdateAsync
(resource, state => state with
263
await rns.
PublishUpdateAsync
(deployment, state => state with
282
await rns.
PublishUpdateAsync
(deployment, state => state with
287
await rns.
PublishUpdateAsync
(deployment, state => state with
296
await rns.
PublishUpdateAsync
(deployment, state => state with
306
await rns.
PublishUpdateAsync
(deployment, state => state with
315
await rns.
PublishUpdateAsync
(deployment, state => state with
323
await rns.
PublishUpdateAsync
(deployment, state => state with
Aspire.Hosting.GitHub.Models (1)
GitHubModelsExtensions.cs (1)
64
await evt.Notifications.
PublishUpdateAsync
(r, s => s with
Aspire.Hosting.OpenAI (2)
OpenAIExtensions.cs (2)
72
await evt.Notifications.
PublishUpdateAsync
(r, s => s with
116
await evt.Notifications.
PublishUpdateAsync
(r, s => s with
Aspire.Hosting.Testing.Tests (1)
ResourceLoggerForwarderServiceTests.cs (1)
88
await resourceNotificationService.
PublishUpdateAsync
(myresource, snapshot => snapshot with { State = "Running" });
Aspire.Hosting.Tests (69)
Codespaces\CodespacesUrlRewriterTests.cs (1)
72
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
Dashboard\DashboardLifecycleHookTests.cs (1)
48
await resourceNotificationService.
PublishUpdateAsync
(model.Resources.Single(), s => s).DefaultTimeout();
Dashboard\DashboardServiceTests.cs (1)
168
await resourceNotificationService.
PublishUpdateAsync
(testResource, s =>
Health\ResourceHealthCheckServiceTests.cs (22)
32
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
40
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
72
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
80
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
115
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
123
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
162
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
177
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
185
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
228
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
269
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
312
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
348
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
379
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
441
await app.ResourceNotifications.
PublishUpdateAsync
(parent.Resource, s => s with
486
await app.ResourceNotifications.
PublishUpdateAsync
(parent.Resource, s => s with
537
await app.ResourceNotifications.
PublishUpdateAsync
(parent.Resource, s => s with
545
await app.ResourceNotifications.
PublishUpdateAsync
(child.Resource, s => s with
581
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
589
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
627
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
635
await app.ResourceNotifications.
PublishUpdateAsync
(resource.Resource, s => s with
ResourceNotificationTests.cs (23)
70
await notificationService.
PublishUpdateAsync
(resource, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout();
72
await notificationService.
PublishUpdateAsync
(resource, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout();
123
await notificationService.
PublishUpdateAsync
(resource1, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout();
125
await notificationService.
PublishUpdateAsync
(resource2, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout();
164
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
180
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
194
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
210
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = KnownResourceStates.Running }).DefaultTimeout();
225
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout();
240
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout();
257
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
319
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
330
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
340
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "NewState" }).DefaultTimeout();
350
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = null }).DefaultTimeout();
360
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "" }).DefaultTimeout();
370
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = " " }).DefaultTimeout();
388
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { CreationTimeStamp = createdDate }).DefaultTimeout();
389
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
390
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { ExitCode = 0 }).DefaultTimeout();
465
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
472
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
516
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
WaitForTests.cs (15)
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
877
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, s => s with
WithHttpCommandTests.cs (4)
399
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
409
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
469
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
480
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
WithUrlsTests.cs (2)
474
await e.Notifications.
PublishUpdateAsync
(custom, s => s with
481
.
PublishUpdateAsync
(e.Resource, s => s with
CustomResources.AppHost (11)
TalkingClockResource.cs (9)
75
await notification.
PublishUpdateAsync
(resource, s => s with
80
await notification.
PublishUpdateAsync
(resource.TickHand, s => s with
85
await notification.
PublishUpdateAsync
(resource.TockHand, s => s with
99
await notification.
PublishUpdateAsync
(resource,
101
await notification.
PublishUpdateAsync
(resource.TickHand,
103
await notification.
PublishUpdateAsync
(resource.TockHand,
109
await notification.
PublishUpdateAsync
(resource,
111
await notification.
PublishUpdateAsync
(resource.TickHand,
113
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