110 references to PublishUpdateAsync
Aspire.Hosting (12)
ApplicationModel\ResourceNotificationService.cs (2)
147await PublishUpdateAsync(resource, s => s with { State = KnownResourceStates.Waiting }).ConfigureAwait(false); 312await PublishUpdateAsync(resource, s => s with { State = KnownResourceStates.Waiting }).ConfigureAwait(false);
Health\ResourceHealthCheckService.cs (2)
181await resourceNotificationService.PublishUpdateAsync(resource, s => 263await resourceNotificationService.PublishUpdateAsync(resource, s => s with
Orchestrator\ApplicationOrchestrator.cs (8)
67await _notificationService.PublishUpdateAsync(resourceWithConnectionString, state => state with 129await _notificationService.PublishUpdateAsync(resource, s => s with { Urls = [.. urls] }).ConfigureAwait(false); 189: notificationService.PublishUpdateAsync(resource, stateFactory); 284await _notificationService.PublishUpdateAsync(resourceWithoutLifetime, s => 295await _notificationService.PublishUpdateAsync(resourceWithoutLifetime, s => 332await _notificationService.PublishUpdateAsync(context.Resource, s => s with { State = KnownResourceStates.FailedToStart }).ConfigureAwait(false); 395await _notificationService.PublishUpdateAsync(child, s => s with 420await _notificationService.PublishUpdateAsync(resource, s =>
Aspire.Hosting.Azure (9)
Provisioning\Provisioners\AzureProvisioner.cs (3)
51await notificationService.PublishUpdateAsync(resource.AzureResource, stateFactory).ConfigureAwait(false); 58await notificationService.PublishUpdateAsync(resource.Resource, stateFactory).ConfigureAwait(false); 79await notificationService.PublishUpdateAsync(child, stateFactory).ConfigureAwait(false);
Provisioning\Provisioners\BicepProvisioner.cs (6)
79await notificationService.PublishUpdateAsync(resource, state => 115await notificationService.PublishUpdateAsync(resource, state => state with 134await notificationService.PublishUpdateAsync(resource, state => 154await notificationService.PublishUpdateAsync(resource, state => 180await notificationService.PublishUpdateAsync(resource, state => 260await notificationService.PublishUpdateAsync(resource, state =>
Aspire.Hosting.Azure.AIFoundry (10)
AzureAIFoundryExtensions.cs (10)
145await rns.PublishUpdateAsync(resource, state => state with 163await rns.PublishUpdateAsync(resource, state => state with 171await rns.PublishUpdateAsync(resource, state => state with 204await rns.PublishUpdateAsync(deployment, state => state with 223await rns.PublishUpdateAsync(deployment, state => state with 228await rns.PublishUpdateAsync(deployment, state => state with 237await rns.PublishUpdateAsync(deployment, state => state with 247await rns.PublishUpdateAsync(deployment, state => state with 256await rns.PublishUpdateAsync(deployment, state => state with 264await rns.PublishUpdateAsync(deployment, state => state with
Aspire.Hosting.Testing.Tests (1)
ResourceLoggerForwarderServiceTests.cs (1)
88await resourceNotificationService.PublishUpdateAsync(myresource, snapshot => snapshot with { State = "Running" });
Aspire.Hosting.Tests (64)
Codespaces\CodespacesUrlRewriterTests.cs (1)
74await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with
Dashboard\DashboardLifecycleHookTests.cs (1)
50await resourceNotificationService.PublishUpdateAsync(model.Resources.Single(), s => s).DefaultTimeout();
Dashboard\DashboardServiceTests.cs (1)
169await resourceNotificationService.PublishUpdateAsync(testResource, s =>
Health\ResourceHealthCheckServiceTests.cs (21)
33await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 41await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 73await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 81await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 116await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 124await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 164await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 179await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 230await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 271await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 314await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 350await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 381await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 444await app.ResourceNotifications.PublishUpdateAsync(parent.Resource, s => s with 490await app.ResourceNotifications.PublishUpdateAsync(parent.Resource, s => s with 542await app.ResourceNotifications.PublishUpdateAsync(parent.Resource, s => s with 550await app.ResourceNotifications.PublishUpdateAsync(child.Resource, s => s with 586await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 594await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 632await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 640await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with
ResourceNotificationTests.cs (20)
71await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout(); 73await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout(); 124await notificationService.PublishUpdateAsync(resource1, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout(); 126await notificationService.PublishUpdateAsync(resource2, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout(); 165await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 181await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 195await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 211await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = KnownResourceStates.Running }).DefaultTimeout(); 226await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout(); 241await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout(); 258await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 320await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 331await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 341await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "NewState" }).DefaultTimeout(); 351await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = null }).DefaultTimeout(); 361await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "" }).DefaultTimeout(); 371await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = " " }).DefaultTimeout(); 389await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { CreationTimeStamp = createdDate }).DefaultTimeout(); 390await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 391await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { ExitCode = 0 }).DefaultTimeout();
WaitForTests.cs (14)
109await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 140await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 180await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 218await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 329await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 363await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 371await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 410await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 418await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 458await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 505await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 560await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 614await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 765await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with
WithHttpCommandTests.cs (4)
400await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with 410await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with 470await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with 481await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with
WithUrlsTests.cs (2)
437await e.Notifications.PublishUpdateAsync(custom.Resource, s => s with 444.PublishUpdateAsync(e.Resource, s => s with
CustomResources.AppHost (11)
TalkingClockResource.cs (9)
55await notification.PublishUpdateAsync(resource, s => s with 60await notification.PublishUpdateAsync(resource.TickHand, s => s with 65await notification.PublishUpdateAsync(resource.TockHand, s => s with 79await notification.PublishUpdateAsync(resource, 81await notification.PublishUpdateAsync(resource.TickHand, 83await notification.PublishUpdateAsync(resource.TockHand, 89await notification.PublishUpdateAsync(resource, 91await notification.PublishUpdateAsync(resource.TickHand, 93await notification.PublishUpdateAsync(resource.TockHand,
TestResource.cs (2)
49await notificationService.PublishUpdateAsync(resource, state => state with 60await notificationService.PublishUpdateAsync(resource, state => state with
HealthChecksSandbox.AppHost (1)
Program.cs (1)
74await notificationService.PublishUpdateAsync(
Stress.AppHost (2)
TestResource.cs (2)
67await notificationService.PublishUpdateAsync(resource, state => state with 78await notificationService.PublishUpdateAsync(resource, state => state with