32 references to PublishUpdateAsync
Aspire.Hosting (9)
ApplicationModel\CommandsConfigurationExtensions.cs (2)
326
await resourceNotificationService.
PublishUpdateAsync
(projectResource, name, s => s with
344
await resourceNotificationService.
PublishUpdateAsync
(projectResource, name, s => s with
ApplicationModel\CustomResourceSnapshotExtensions.cs (1)
22
/// and <see cref="ResourceNotificationService.
PublishUpdateAsync
(IResource, string, Func{CustomResourceSnapshot, CustomResourceSnapshot})"/>.
ApplicationModel\ResourceNotificationService.cs (1)
1234
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)
288
? notificationService.
PublishUpdateAsync
(resource, resourceId, stateFactory)
589
await _notificationService.
PublishUpdateAsync
(context.Resource, context.DcpResourceName, context.UpdateSnapshot).ConfigureAwait(false);
621
await _notificationService.
PublishUpdateAsync
(context.Resource, context.DcpResourceName, s => s with { State = stateSnapshot }).ConfigureAwait(false);
661
await _notificationService.
PublishUpdateAsync
(
Aspire.Hosting.Browsers (1)
BrowserLogsSessionManager.cs (1)
385
return _resourceNotificationService.
PublishUpdateAsync
(resource, resourceName, snapshot =>
Aspire.Hosting.Browsers.Tests (1)
src\Aspire.Hosting.Browsers\BrowserLogsSessionManager.cs (1)
385
return _resourceNotificationService.
PublishUpdateAsync
(resource, resourceName, snapshot =>
Aspire.Hosting.Tests (21)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (4)
134
await notificationService.
PublishUpdateAsync
(resourceWithReplicas.Resource, "myresource-abc123", s => s with
138
await notificationService.
PublishUpdateAsync
(resourceWithReplicas.Resource, "myresource-def456", s => s with
1438
await notificationService.
PublishUpdateAsync
(resourceWithReplicas.Resource, "myresource-abc123", s => s with
1477
await notificationService.
PublishUpdateAsync
(resourceWithReplicas.Resource, "myresource-abc123", s => s with
Dashboard\DashboardResourceTests.cs (1)
734
await resourceNotificationService.
PublishUpdateAsync
(dashboard, "aspire-dashboard-0", s => s with { State = "Running" }).DefaultTimeout();
Dashboard\DashboardServiceDataTerminalTests.cs (2)
87
await notifications.
PublishUpdateAsync
(resource, "myapp-ccc", s => s with { State = new ResourceStateSnapshot("Running", null) }).DefaultTimeout();
135
await notifications.
PublishUpdateAsync
(resource, "myapp-unknown", s => s with { State = new ResourceStateSnapshot("Running", null) }).DefaultTimeout();
Orchestrator\ApplicationOrchestratorTests.cs (3)
682
await resourceNotificationService.
PublishUpdateAsync
(waiter.Resource, "waiter-def456", s => s with
697
await resourceNotificationService.
PublishUpdateAsync
(waiter.Resource, "waiter-def456", s => s with
1074
await notificationService.
PublishUpdateAsync
(resource, instance.Name, s => s with { State = state }).DefaultTimeout();
ResourceNotificationTests.cs (7)
204
await notificationService.
PublishUpdateAsync
(resource1, "replica1", state => state with { Properties = state.Properties.Add(new("C", "value")) }).DefaultTimeout();
597
await notificationService.
PublishUpdateAsync
(resource, "resource-abc123", s => s with
601
await notificationService.
PublishUpdateAsync
(resource, "resource-def456", s => s with
639
await notificationService.
PublishUpdateAsync
(resource, "resource-abc123", s => s with
711
await notificationService.
PublishUpdateAsync
(resource, "resource-abc123", s => s with
759
await notificationService.
PublishUpdateAsync
(dependency, "dependency-abc123", s => s with
772
await notificationService.
PublishUpdateAsync
(dependency, "dependency-def456", s => s with
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