143 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)
96
await evt.Notifications.
PublishUpdateAsync
(r, s => s with
110
await evt.Notifications.
PublishUpdateAsync
(r, s => s with
DotnetToolResourceExtensions.cs (1)
102
await rns.
PublishUpdateAsync
(resource, x => x 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)
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.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
285
await rns.
PublishUpdateAsync
(deployment, state => state with
290
await rns.
PublishUpdateAsync
(deployment, state => state with
299
await rns.
PublishUpdateAsync
(deployment, state => state with
309
await rns.
PublishUpdateAsync
(deployment, state => state with
318
await rns.
PublishUpdateAsync
(deployment, state => state with
326
await rns.
PublishUpdateAsync
(deployment, state => state with
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
293
await rns.
PublishUpdateAsync
(databaseResource, state => state with
Aspire.Hosting.DevTunnels (5)
DevTunnelResourceBuilderExtensions.cs (5)
191
await notifications.
PublishUpdateAsync
(portResource, snapshot => snapshot with
628
await notifications.
PublishUpdateAsync
(portResource, snapshot => snapshot with
645
await notifications.
PublishUpdateAsync
(portResource, snapshot => snapshot with
672
await notifications.
PublishUpdateAsync
(portResource, snapshot => snapshot with
701
await notifications.
PublishUpdateAsync
(portResource, snapshot => stoppedSnapshot = snapshot with
Aspire.Hosting.GitHub.Models (1)
GitHubModelsExtensions.cs (1)
70
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)
82
await evt.Notifications.
PublishUpdateAsync
(r, s => s with
126
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 (79)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
92
await notificationService.
PublishUpdateAsync
(custom.Resource, s => s with
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)
169
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 (30)
79
await notificationService.
PublishUpdateAsync
(resource, state => state).DefaultTimeout();
114
await notificationService.
PublishUpdateAsync
(resource, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout();
116
await notificationService.
PublishUpdateAsync
(resource, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout();
167
await notificationService.
PublishUpdateAsync
(resource1, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout();
169
await notificationService.
PublishUpdateAsync
(resource2, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout();
208
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
224
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
238
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
254
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = KnownResourceStates.Running }).DefaultTimeout();
269
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout();
284
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout();
301
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
363
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
374
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
384
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "NewState" }).DefaultTimeout();
394
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = null }).DefaultTimeout();
404
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "" }).DefaultTimeout();
414
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = " " }).DefaultTimeout();
432
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { CreationTimeStamp = createdDate }).DefaultTimeout();
433
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
434
await notificationService.
PublishUpdateAsync
(resource1, snapshot => snapshot with { ExitCode = 0 }).DefaultTimeout();
510
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
517
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
562
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
598
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
626
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
632
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
671
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
696
await notificationService.
PublishUpdateAsync
(resource, snapshot => snapshot with
704
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
420
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
432
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
475
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
490
await app.ResourceNotifications.
PublishUpdateAsync
(service.Resource, s => s with
529
await app.ResourceNotifications.
PublishUpdateAsync
(resource, s => s with
WithUrlsTests.cs (2)
571
await e.Notifications.
PublishUpdateAsync
(custom, s => s with
578
.
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)
53
await notificationService.
PublishUpdateAsync
(resource, state => state with
64
await notificationService.
PublishUpdateAsync
(resource, state => state with
HealthChecksSandbox.AppHost (1)
Program.cs (1)
75
await notificationService.
PublishUpdateAsync
(
Stress.AppHost (2)
TestResource.cs (2)
71
await notificationService.
PublishUpdateAsync
(resource, state => state with
82
await notificationService.
PublishUpdateAsync
(resource, state => state with