96 references to PublishUpdateAsync
Aspire.Hosting (11)
ApplicationModel\ResourceNotificationService.cs (2)
146await PublishUpdateAsync(resource, s => s with { State = KnownResourceStates.Waiting }).ConfigureAwait(false); 311await 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 (7)
129await _notificationService.PublishUpdateAsync(resource, s => s with { Urls = [.. urls] }).ConfigureAwait(false); 173: notificationService.PublishUpdateAsync(resource, stateFactory); 251await _notificationService.PublishUpdateAsync(resource, s => 262await _notificationService.PublishUpdateAsync(resource, s => 310await _notificationService.PublishUpdateAsync(context.Resource, s => s with { State = KnownResourceStates.FailedToStart }).ConfigureAwait(false); 373await _notificationService.PublishUpdateAsync(child, s => s with 397await _notificationService.PublishUpdateAsync(resource, s =>
Aspire.Hosting.Azure (8)
Provisioning\Provisioners\AzureProvisioner.cs (2)
66await notificationService.PublishUpdateAsync(resource.AzureResource, stateFactory).ConfigureAwait(false); 73await notificationService.PublishUpdateAsync(resource.Resource, stateFactory).ConfigureAwait(false);
Provisioning\Provisioners\BicepProvisioner.cs (6)
91await notificationService.PublishUpdateAsync(resource, state => 132await notificationService.PublishUpdateAsync(resource, state => state with 165await notificationService.PublishUpdateAsync(resource, state => 191await notificationService.PublishUpdateAsync(resource, state => 213await notificationService.PublishUpdateAsync(resource, state => 293await notificationService.PublishUpdateAsync(resource, state =>
Aspire.Hosting.Testing.Tests (1)
ResourceLoggerForwarderServiceTests.cs (1)
88await resourceNotificationService.PublishUpdateAsync(myresource, snapshot => snapshot with { State = "Running" });
Aspire.Hosting.Tests (62)
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)
167await 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)
430await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with 440await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with 499await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with 510await app.ResourceNotifications.PublishUpdateAsync(service.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