14 references to PublishUpdateAsync
Aspire.Hosting (6)
ApplicationModel\ResourceNotificationService.cs (1)
828
await
PublishUpdateAsync
(resource, resourceName, stateFactory).ConfigureAwait(false);
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (1)
60
await resourceNotificationService.
PublishUpdateAsync
(resourceEvent.Resource, resourceEvent.ResourceId, s => s with
Orchestrator\ApplicationOrchestrator.cs (4)
204
? notificationService.
PublishUpdateAsync
(resource, resourceId, stateFactory)
500
await _notificationService.
PublishUpdateAsync
(context.Resource, context.DcpResourceName, context.UpdateSnapshot).ConfigureAwait(false);
528
await _notificationService.
PublishUpdateAsync
(context.Resource, context.DcpResourceName, s => s with { State = KnownResourceStates.FailedToStart }).ConfigureAwait(false);
568
await _notificationService.
PublishUpdateAsync
(
Aspire.Hosting.Tests (8)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (2)
47
await notificationService.
PublishUpdateAsync
(resourceWithReplicas.Resource, "myresource-abc123", s => s with
51
await notificationService.
PublishUpdateAsync
(resourceWithReplicas.Resource, "myresource-def456", s => s with
Dashboard\DashboardResourceTests.cs (1)
570
await resourceNotificationService.
PublishUpdateAsync
(dashboard, "aspire-dashboard-0", s => s with { State = "Running" }).DefaultTimeout();
ResourceNotificationTests.cs (1)
171
await notificationService.
PublishUpdateAsync
(resource1, "replica1", state => state with { Properties = state.Properties.Add(new("C", "value")) }).DefaultTimeout();
WaitForTests.cs (4)
664
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, "test0", s => s with
672
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, "test1", s => s with
717
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, "test0", s => s with
725
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, "test1", s => s with