12 references to PublishUpdateAsync
Aspire.Hosting (6)
ApplicationModel\ResourceNotificationService.cs (1)
667await 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)
172? notificationService.PublishUpdateAsync(resource, resourceId, stateFactory) 289await _notificationService.PublishUpdateAsync(context.Resource, context.DcpResourceName, context.UpdateSnapshot).ConfigureAwait(false); 301await _notificationService.PublishUpdateAsync(context.Resource, context.DcpResourceName, s => s with { State = KnownResourceStates.FailedToStart }).ConfigureAwait(false); 341await _notificationService.PublishUpdateAsync(
Aspire.Hosting.Tests (6)
Dashboard\DashboardResourceTests.cs (1)
480await resourceNotificationService.PublishUpdateAsync(dashboard, "aspire-dashboard-0", s => s with { State = "Running" }).DefaultTimeout();
ResourceNotificationTests.cs (1)
128await notificationService.PublishUpdateAsync(resource1, "replica1", state => state with { Properties = state.Properties.Add(new("C", "value")) }).DefaultTimeout();
WaitForTests.cs (4)
663await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, "test0", s => s with 671await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, "test1", s => s with 716await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, "test0", s => s with 724await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, "test1", s => s with