144 references to PublishUpdateAsync
Aspire.Hosting (18)
ApplicationModel\ResourceNotificationService.cs (2)
274await PublishUpdateAsync(resource, s => s with { State = KnownResourceStates.Waiting }).ConfigureAwait(false); 330await PublishUpdateAsync(resource, s => s with { State = KnownResourceStates.Waiting }).ConfigureAwait(false);
Ats\NotificationExports.cs (1)
85return notificationService.PublishUpdateAsync(resource.Resource, snapshot =>
ConnectionStringBuilderExtensions.cs (2)
97await evt.Notifications.PublishUpdateAsync(r, s => s with 111await evt.Notifications.PublishUpdateAsync(r, s => s with
DotnetToolResourceExtensions.cs (1)
105await rns.PublishUpdateAsync(resource, x => x with
ExternalServiceBuilderExtensions.cs (3)
124await e.Notifications.PublishUpdateAsync(resource, snapshot => snapshot with 136await e.Notifications.PublishUpdateAsync(resource, snapshot => snapshot with 149await e.Notifications.PublishUpdateAsync(resource, snapshot => snapshot with
Health\ResourceHealthCheckService.cs (2)
185await resourceNotificationService.PublishUpdateAsync(resource, s => 266await resourceNotificationService.PublishUpdateAsync(resource, s => s with
Orchestrator\ApplicationOrchestrator.cs (6)
85await _notificationService.PublishUpdateAsync(resourceWithConnectionString, state => state with 147await _notificationService.PublishUpdateAsync(resource, s => s with { Urls = [.. urls] }).ConfigureAwait(false); 205: notificationService.PublishUpdateAsync(resource, stateFactory); 537await _notificationService.PublishUpdateAsync(context.Resource, s => s with { State = KnownResourceStates.FailedToStart }).ConfigureAwait(false); 606await _notificationService.PublishUpdateAsync(child, s => s with 634await _notificationService.PublishUpdateAsync(resource, s =>
Orchestrator\ParameterProcessor.cs (1)
594await notificationService.PublishUpdateAsync(parameterResource, s =>
Aspire.Hosting.Azure (9)
Provisioning\Provisioners\AzureProvisioner.cs (3)
45await notificationService.PublishUpdateAsync(resource.AzureResource, stateFactory).ConfigureAwait(false); 52await notificationService.PublishUpdateAsync(resource.Resource, stateFactory).ConfigureAwait(false); 73await notificationService.PublishUpdateAsync(child, stateFactory).ConfigureAwait(false);
Provisioning\Provisioners\BicepProvisioner.cs (6)
93await notificationService.PublishUpdateAsync(resource, state => 130await notificationService.PublishUpdateAsync(resource, state => state with 150await notificationService.PublishUpdateAsync(resource, state => 171await notificationService.PublishUpdateAsync(resource, state => 202await notificationService.PublishUpdateAsync(resource, state => 284await notificationService.PublishUpdateAsync(resource, state =>
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
297await rns.PublishUpdateAsync(databaseResource, state => state with
Aspire.Hosting.DevTunnels (5)
DevTunnelResourceBuilderExtensions.cs (5)
195await notifications.PublishUpdateAsync(portResource, snapshot => snapshot with 689await notifications.PublishUpdateAsync(portResource, snapshot => snapshot with 706await notifications.PublishUpdateAsync(portResource, snapshot => snapshot with 733await notifications.PublishUpdateAsync(portResource, snapshot => snapshot with 762await notifications.PublishUpdateAsync(portResource, snapshot => stoppedSnapshot = snapshot with
Aspire.Hosting.Foundry (10)
FoundryExtensions.cs (10)
249await rns.PublishUpdateAsync(resource, state => state with 267await rns.PublishUpdateAsync(resource, state => state with 275await rns.PublishUpdateAsync(resource, state => state with 305await rns.PublishUpdateAsync(deployment, state => state with 327await rns.PublishUpdateAsync(deployment, state => state with 332await rns.PublishUpdateAsync(deployment, state => state with 341await rns.PublishUpdateAsync(deployment, state => state with 351await rns.PublishUpdateAsync(deployment, state => state with 360await rns.PublishUpdateAsync(deployment, state => state with 368await rns.PublishUpdateAsync(deployment, state => state with
Aspire.Hosting.GitHub.Models (1)
GitHubModelsExtensions.cs (1)
71await evt.Notifications.PublishUpdateAsync(r, s => s with
Aspire.Hosting.Maui (3)
Lifecycle\UnsupportedPlatformEventSubscriber.cs (1)
34await notificationService.PublishUpdateAsync(resource, s => s with
Utilities\MauiAndroidEnvironmentAnnotation.cs (1)
119await notificationService.PublishUpdateAsync(resource, s => s with
Utilities\MauiiOSEnvironmentAnnotation.cs (1)
119await notificationService.PublishUpdateAsync(resource, s => s with
Aspire.Hosting.OpenAI (2)
OpenAIExtensions.cs (2)
83await evt.Notifications.PublishUpdateAsync(r, s => s with 128await evt.Notifications.PublishUpdateAsync(r, s => s with
Aspire.Hosting.Testing.Tests (2)
ResourceLoggerForwarderServiceTests.cs (2)
56await resourceNotificationService.PublishUpdateAsync(myresource, snapshot => snapshot with { State = "Running" }); 106await resourceNotificationService.PublishUpdateAsync(myresource, snapshot => snapshot with { State = "Running" });
Aspire.Hosting.Tests (79)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
94await notificationService.PublishUpdateAsync(custom.Resource, s => s with
Codespaces\CodespacesUrlRewriterTests.cs (1)
73await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with
Dashboard\DashboardLifecycleHookTests.cs (1)
51await resourceNotificationService.PublishUpdateAsync(model.Resources.Single(), s => s).DefaultTimeout();
Dashboard\DashboardServiceTests.cs (1)
170await resourceNotificationService.PublishUpdateAsync(testResource, s =>
Health\ResourceHealthCheckServiceTests.cs (22)
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 163await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 178await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 186await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 229await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 270await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 313await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 349await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 380await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 442await app.ResourceNotifications.PublishUpdateAsync(parent.Resource, s => s with 487await app.ResourceNotifications.PublishUpdateAsync(parent.Resource, s => s with 538await app.ResourceNotifications.PublishUpdateAsync(parent.Resource, s => s with 546await app.ResourceNotifications.PublishUpdateAsync(child.Resource, s => s with 582await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 590await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 628await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 636await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with
ResourceNotificationTests.cs (30)
80await notificationService.PublishUpdateAsync(resource, state => state).DefaultTimeout(); 115await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout(); 117await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout(); 168await notificationService.PublishUpdateAsync(resource1, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout(); 170await notificationService.PublishUpdateAsync(resource2, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout(); 209await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 225await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 239await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 255await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = KnownResourceStates.Running }).DefaultTimeout(); 270await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout(); 285await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout(); 302await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 364await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 375await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 385await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "NewState" }).DefaultTimeout(); 395await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = null }).DefaultTimeout(); 405await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "" }).DefaultTimeout(); 415await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = " " }).DefaultTimeout(); 433await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { CreationTimeStamp = createdDate }).DefaultTimeout(); 434await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 435await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { ExitCode = 0 }).DefaultTimeout(); 511await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 518await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 563await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 599await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 627await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 633await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 672await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 697await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 705await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with
WaitForTests.cs (15)
110await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 141await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 181await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 219await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 330await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 364await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 372await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 411await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 419await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 459await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 506await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 561await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 615await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 766await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 878await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with
WithHttpCommandTests.cs (6)
298await app.ResourceNotifications.PublishUpdateAsync(serviceA.Resource, s => s with 419await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with 431await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with 474await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with 489await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with 528await app.ResourceNotifications.PublishUpdateAsync(resource, s => s with
WithUrlsTests.cs (2)
572await e.Notifications.PublishUpdateAsync(custom, s => s with 579.PublishUpdateAsync(e.Resource, s => s with
CustomResources.AppHost (11)
TalkingClockResource.cs (9)
76await notification.PublishUpdateAsync(resource, s => s with 81await notification.PublishUpdateAsync(resource.TickHand, s => s with 86await notification.PublishUpdateAsync(resource.TockHand, s => s with 100await notification.PublishUpdateAsync(resource, 102await notification.PublishUpdateAsync(resource.TickHand, 104await notification.PublishUpdateAsync(resource.TockHand, 110await notification.PublishUpdateAsync(resource, 112await notification.PublishUpdateAsync(resource.TickHand, 114await notification.PublishUpdateAsync(resource.TockHand,
TestResource.cs (2)
54await notificationService.PublishUpdateAsync(resource, state => state with 65await notificationService.PublishUpdateAsync(resource, state => state with
HealthChecksSandbox.AppHost (1)
Program.cs (1)
75await notificationService.PublishUpdateAsync(
Stress.AppHost (2)
TestResource.cs (2)
73await notificationService.PublishUpdateAsync(resource, state => state with 84await notificationService.PublishUpdateAsync(resource, state => state with