139 references to PublishUpdateAsync
Aspire.Hosting (18)
ApplicationModel\ResourceNotificationService.cs (2)
263await PublishUpdateAsync(resource, s => s with { State = KnownResourceStates.Waiting }).ConfigureAwait(false); 315await PublishUpdateAsync(resource, s => s with { State = KnownResourceStates.Waiting }).ConfigureAwait(false);
ConnectionStringBuilderExtensions.cs (2)
96await evt.Notifications.PublishUpdateAsync(r, s => s with 110await evt.Notifications.PublishUpdateAsync(r, s => s with
ExternalServiceBuilderExtensions.cs (3)
121await e.Notifications.PublishUpdateAsync(resource, snapshot => snapshot with 133await e.Notifications.PublishUpdateAsync(resource, snapshot => snapshot with 146await 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)
81await _notificationService.PublishUpdateAsync(resourceWithConnectionString, state => state with 143await _notificationService.PublishUpdateAsync(resource, s => s with { Urls = [.. urls] }).ConfigureAwait(false); 203: notificationService.PublishUpdateAsync(resource, stateFactory); 446await _notificationService.PublishUpdateAsync(context.Resource, s => s with { State = KnownResourceStates.FailedToStart }).ConfigureAwait(false); 515await _notificationService.PublishUpdateAsync(child, s => s with 543await _notificationService.PublishUpdateAsync(resource, s =>
Orchestrator\ParameterProcessor.cs (3)
174await notificationService.PublishUpdateAsync(parameterResource, s => 211await notificationService.PublishUpdateAsync(parameterResource, s => 332await notificationService.PublishUpdateAsync(parameter, 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)
89await notificationService.PublishUpdateAsync(resource, state => 126await notificationService.PublishUpdateAsync(resource, state => state with 145await notificationService.PublishUpdateAsync(resource, state => 166await notificationService.PublishUpdateAsync(resource, state => 197await notificationService.PublishUpdateAsync(resource, state => 279await notificationService.PublishUpdateAsync(resource, state =>
Aspire.Hosting.Azure.AIFoundry (10)
AzureAIFoundryExtensions.cs (10)
207await rns.PublishUpdateAsync(resource, state => state with 225await rns.PublishUpdateAsync(resource, state => state with 233await rns.PublishUpdateAsync(resource, state => state with 263await rns.PublishUpdateAsync(deployment, state => state with 285await rns.PublishUpdateAsync(deployment, state => state with 290await rns.PublishUpdateAsync(deployment, state => state with 299await rns.PublishUpdateAsync(deployment, state => state with 309await rns.PublishUpdateAsync(deployment, state => state with 318await rns.PublishUpdateAsync(deployment, state => state with 326await rns.PublishUpdateAsync(deployment, state => state with
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
290await rns.PublishUpdateAsync(databaseResource, state => state with
Aspire.Hosting.DevTunnels (5)
DevTunnelResourceBuilderExtensions.cs (5)
177await notifications.PublishUpdateAsync(portResource, snapshot => snapshot with 611await notifications.PublishUpdateAsync(portResource, snapshot => snapshot with 628await notifications.PublishUpdateAsync(portResource, snapshot => snapshot with 655await notifications.PublishUpdateAsync(portResource, snapshot => snapshot with 684await notifications.PublishUpdateAsync(portResource, snapshot => stoppedSnapshot = snapshot with
Aspire.Hosting.GitHub.Models (1)
GitHubModelsExtensions.cs (1)
70await 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)
114await notificationService.PublishUpdateAsync(resource, s => s with
Utilities\MauiiOSEnvironmentAnnotation.cs (1)
114await notificationService.PublishUpdateAsync(resource, s => s with
Aspire.Hosting.OpenAI (2)
OpenAIExtensions.cs (2)
82await evt.Notifications.PublishUpdateAsync(r, s => s with 126await evt.Notifications.PublishUpdateAsync(r, s => s with
Aspire.Hosting.Testing.Tests (1)
ResourceLoggerForwarderServiceTests.cs (1)
88await resourceNotificationService.PublishUpdateAsync(myresource, snapshot => snapshot with { State = "Running" });
Aspire.Hosting.Tests (75)
Codespaces\CodespacesUrlRewriterTests.cs (1)
72await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with
Dashboard\DashboardLifecycleHookTests.cs (1)
48await resourceNotificationService.PublishUpdateAsync(model.Resources.Single(), s => s).DefaultTimeout();
Dashboard\DashboardServiceTests.cs (1)
169await resourceNotificationService.PublishUpdateAsync(testResource, s =>
Health\ResourceHealthCheckServiceTests.cs (22)
32await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 40await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 72await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 80await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 115await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 123await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 162await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 177await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 185await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 228await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 269await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 312await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 348await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 379await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 441await app.ResourceNotifications.PublishUpdateAsync(parent.Resource, s => s with 486await app.ResourceNotifications.PublishUpdateAsync(parent.Resource, s => s with 537await app.ResourceNotifications.PublishUpdateAsync(parent.Resource, s => s with 545await app.ResourceNotifications.PublishUpdateAsync(child.Resource, s => s with 581await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 589await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 627await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 635await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with
ResourceNotificationTests.cs (29)
70await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout(); 72await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout(); 123await notificationService.PublishUpdateAsync(resource1, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout(); 125await notificationService.PublishUpdateAsync(resource2, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout(); 164await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 180await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 194await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 210await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = KnownResourceStates.Running }).DefaultTimeout(); 225await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout(); 240await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout(); 257await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 319await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 330await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 340await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "NewState" }).DefaultTimeout(); 350await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = null }).DefaultTimeout(); 360await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "" }).DefaultTimeout(); 370await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = " " }).DefaultTimeout(); 388await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { CreationTimeStamp = createdDate }).DefaultTimeout(); 389await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 390await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { ExitCode = 0 }).DefaultTimeout(); 466await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 473await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 518await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 554await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 582await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 588await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 627await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 652await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 660await 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 (4)
399await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with 409await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with 469await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with 480await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with
WithUrlsTests.cs (2)
528await e.Notifications.PublishUpdateAsync(custom, s => s with 535.PublishUpdateAsync(e.Resource, s => s with
CustomResources.AppHost (11)
TalkingClockResource.cs (9)
75await notification.PublishUpdateAsync(resource, s => s with 80await notification.PublishUpdateAsync(resource.TickHand, s => s with 85await notification.PublishUpdateAsync(resource.TockHand, s => s with 99await notification.PublishUpdateAsync(resource, 101await notification.PublishUpdateAsync(resource.TickHand, 103await notification.PublishUpdateAsync(resource.TockHand, 109await notification.PublishUpdateAsync(resource, 111await notification.PublishUpdateAsync(resource.TickHand, 113await notification.PublishUpdateAsync(resource.TockHand,
TestResource.cs (2)
53await notificationService.PublishUpdateAsync(resource, state => state with 64await notificationService.PublishUpdateAsync(resource, state => state with
HealthChecksSandbox.AppHost (1)
Program.cs (1)
75await notificationService.PublishUpdateAsync(
Stress.AppHost (2)
TestResource.cs (2)
71await notificationService.PublishUpdateAsync(resource, state => state with 82await notificationService.PublishUpdateAsync(resource, state => state with