35 references to PublishUpdateAsync
Aspire.Hosting (10)
ApplicationModel\CommandsConfigurationExtensions.cs (3)
241
await resourceNotificationService.
PublishUpdateAsync
(projectResource, name, s =>
330
await resourceNotificationService.
PublishUpdateAsync
(projectResource, name, s => s with
344
await resourceNotificationService.
PublishUpdateAsync
(projectResource, name,
ApplicationModel\CustomResourceSnapshotExtensions.cs (1)
22
/// and <see cref="ResourceNotificationService.
PublishUpdateAsync
(IResource, string, Func{CustomResourceSnapshot, CustomResourceSnapshot})"/>.
ApplicationModel\ResourceNotificationService.cs (1)
1303
await
PublishUpdateAsync
(resource, resourceName, stateFactory).ConfigureAwait(false);
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (1)
59
await resourceNotificationService.
PublishUpdateAsync
(resourceEvent.Resource, resourceEvent.ResourceId, s => s with
Orchestrator\ApplicationOrchestrator.cs (4)
301
? notificationService.
PublishUpdateAsync
(resource, resourceId, stateFactory)
647
await _notificationService.
PublishUpdateAsync
(context.Resource, context.DcpResourceName, context.UpdateSnapshot).ConfigureAwait(false);
678
await _notificationService.
PublishUpdateAsync
(context.Resource, context.DcpResourceName, s => s with { State = stateSnapshot }).ConfigureAwait(false);
718
await _notificationService.
PublishUpdateAsync
(
Aspire.Hosting.Browsers (1)
BrowserLogsSessionManager.cs (1)
384
return _resourceNotificationService.
PublishUpdateAsync
(resource, resourceName, snapshot =>
Aspire.Hosting.Browsers.Tests (1)
src\Aspire.Hosting.Browsers\BrowserLogsSessionManager.cs (1)
384
return _resourceNotificationService.
PublishUpdateAsync
(resource, resourceName, snapshot =>
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectBuildCoordinatorTests.cs (1)
4741
await app.ResourceNotifications.
PublishUpdateAsync
(
Aspire.Hosting.Tests (22)
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
1485
await notificationService.
PublishUpdateAsync
(resourceWithReplicas.Resource, "myresource-abc123", s => s with
1524
await notificationService.
PublishUpdateAsync
(resourceWithReplicas.Resource, "myresource-abc123", s => s with
Dashboard\DashboardResourceTests.cs (1)
752
await resourceNotificationService.
PublishUpdateAsync
(dashboard, "aspire-dashboard-0", s => s with { State = "Running" }).DefaultTimeout();
Dashboard\DashboardServiceDataTerminalTests.cs (2)
107
await notifications.
PublishUpdateAsync
(resource, "myapp-ccc", s => s with { State = new ResourceStateSnapshot("Running", null) }).DefaultTimeout();
155
await notifications.
PublishUpdateAsync
(resource, "myapp-unknown", s => s with { State = new ResourceStateSnapshot("Running", null) }).DefaultTimeout();
Orchestrator\ApplicationOrchestratorTests.cs (4)
546
await notifications.
PublishUpdateAsync
(resource.Resource, resource.Resource.Name,
1232
await resourceNotificationService.
PublishUpdateAsync
(waiter.Resource, "waiter-def456", s => s with
1247
await resourceNotificationService.
PublishUpdateAsync
(waiter.Resource, "waiter-def456", s => s with
1624
await notificationService.
PublishUpdateAsync
(resource, instance.Name, s => s with { State = state }).DefaultTimeout();
ResourceNotificationTests.cs (7)
314
await notificationService.
PublishUpdateAsync
(resource1, "replica1", state => state with { Properties = state.Properties.Add(new("C", "value")) }).DefaultTimeout();
809
await notificationService.
PublishUpdateAsync
(resource, "resource-abc123", s => s with
813
await notificationService.
PublishUpdateAsync
(resource, "resource-def456", s => s with
851
await notificationService.
PublishUpdateAsync
(resource, "resource-abc123", s => s with
923
await notificationService.
PublishUpdateAsync
(resource, "resource-abc123", s => s with
971
await notificationService.
PublishUpdateAsync
(dependency, "dependency-abc123", s => s with
984
await notificationService.
PublishUpdateAsync
(dependency, "dependency-def456", s => s with
WaitForTests.cs (4)
665
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, "test0", s => s with
673
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, "test1", s => s with
718
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, "test0", s => s with
726
await app.ResourceNotifications.
PublishUpdateAsync
(dependency.Resource, "test1", s => s with