34 references to PublishUpdateAsync
Aspire.Hosting (9)
ApplicationModel\CommandsConfigurationExtensions.cs (2)
328await resourceNotificationService.PublishUpdateAsync(projectResource, name, s => s with 346await 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)
1271await PublishUpdateAsync(resource, resourceName, stateFactory).ConfigureAwait(false);
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (1)
60await resourceNotificationService.PublishUpdateAsync(resourceEvent.Resource, resourceEvent.ResourceId, s => s with
Orchestrator\ApplicationOrchestrator.cs (4)
286? notificationService.PublishUpdateAsync(resource, resourceId, stateFactory) 580await _notificationService.PublishUpdateAsync(context.Resource, context.DcpResourceName, context.UpdateSnapshot).ConfigureAwait(false); 611await _notificationService.PublishUpdateAsync(context.Resource, context.DcpResourceName, s => s with { State = stateSnapshot }).ConfigureAwait(false); 651await _notificationService.PublishUpdateAsync(
Aspire.Hosting.Browsers (1)
BrowserLogsSessionManager.cs (1)
384return _resourceNotificationService.PublishUpdateAsync(resource, resourceName, snapshot =>
Aspire.Hosting.Browsers.Tests (1)
src\Aspire.Hosting.Browsers\BrowserLogsSessionManager.cs (1)
384return _resourceNotificationService.PublishUpdateAsync(resource, resourceName, snapshot =>
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectBuildCoordinatorTests.cs (1)
3651await app.ResourceNotifications.PublishUpdateAsync(
Aspire.Hosting.Tests (22)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (4)
134await notificationService.PublishUpdateAsync(resourceWithReplicas.Resource, "myresource-abc123", s => s with 138await notificationService.PublishUpdateAsync(resourceWithReplicas.Resource, "myresource-def456", s => s with 1438await notificationService.PublishUpdateAsync(resourceWithReplicas.Resource, "myresource-abc123", s => s with 1477await notificationService.PublishUpdateAsync(resourceWithReplicas.Resource, "myresource-abc123", s => s with
Dashboard\DashboardResourceTests.cs (1)
752await resourceNotificationService.PublishUpdateAsync(dashboard, "aspire-dashboard-0", s => s with { State = "Running" }).DefaultTimeout();
Dashboard\DashboardServiceDataTerminalTests.cs (2)
87await notifications.PublishUpdateAsync(resource, "myapp-ccc", s => s with { State = new ResourceStateSnapshot("Running", null) }).DefaultTimeout(); 135await notifications.PublishUpdateAsync(resource, "myapp-unknown", s => s with { State = new ResourceStateSnapshot("Running", null) }).DefaultTimeout();
Orchestrator\ApplicationOrchestratorTests.cs (4)
41await notifications.PublishUpdateAsync(resource.Resource, resource.Resource.Name, 727await resourceNotificationService.PublishUpdateAsync(waiter.Resource, "waiter-def456", s => s with 742await resourceNotificationService.PublishUpdateAsync(waiter.Resource, "waiter-def456", s => s with 1119await notificationService.PublishUpdateAsync(resource, instance.Name, s => s with { State = state }).DefaultTimeout();
ResourceNotificationTests.cs (7)
204await notificationService.PublishUpdateAsync(resource1, "replica1", state => state with { Properties = state.Properties.Add(new("C", "value")) }).DefaultTimeout(); 643await notificationService.PublishUpdateAsync(resource, "resource-abc123", s => s with 647await notificationService.PublishUpdateAsync(resource, "resource-def456", s => s with 685await notificationService.PublishUpdateAsync(resource, "resource-abc123", s => s with 757await notificationService.PublishUpdateAsync(resource, "resource-abc123", s => s with 805await notificationService.PublishUpdateAsync(dependency, "dependency-abc123", s => s with 818await notificationService.PublishUpdateAsync(dependency, "dependency-def456", s => s with
WaitForTests.cs (4)
664await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, "test0", s => s with 672await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, "test1", s => s with 717await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, "test0", s => s with 725await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, "test1", s => s with