451 references to PublishUpdateAsync
Aspire.Hosting (24)
ApplicationModel\CommandsConfigurationExtensions.cs (4)
290await resourceNotificationService.PublishUpdateAsync(projectResource, s => s with 304await resourceNotificationService.PublishUpdateAsync(projectResource, s => s with 357await resourceNotificationService.PublishUpdateAsync(projectResource, s => s with 369await resourceNotificationService.PublishUpdateAsync(projectResource, s => s with
ApplicationModel\CustomResourceSnapshotExtensions.cs (1)
21/// This method is intended for use with <see cref="ResourceNotificationService.PublishUpdateAsync(IResource, Func{CustomResourceSnapshot, CustomResourceSnapshot})"/>
ApplicationModel\ResourceNotificationService.cs (2)
660return PublishUpdateAsync(resource, s => 678return PublishUpdateAsync(resource, s => s with
Ats\NotificationExports.cs (1)
99return notificationService.PublishUpdateAsync(resource.Resource, snapshot =>
ConnectionStringBuilderExtensions.cs (2)
96await evt.Notifications.PublishUpdateAsync(r, s => s with 110await evt.Notifications.PublishUpdateAsync(r, s => s with
DotnetToolResourceExtensions.cs (1)
109await rns.PublishUpdateAsync(resource, x => x with
ExternalServiceBuilderExtensions.cs (3)
145await e.Notifications.PublishUpdateAsync(resource, snapshot => snapshot with 157await e.Notifications.PublishUpdateAsync(resource, snapshot => snapshot with 170await e.Notifications.PublishUpdateAsync(resource, snapshot => snapshot with
Health\ResourceHealthCheckService.cs (2)
197await resourceNotificationService.PublishUpdateAsync(resource, s => 286await resourceNotificationService.PublishUpdateAsync(resource, s => s with
Lifecycle\TerminalHostFailureDiagnosticService.cs (1)
109await notifications.PublishUpdateAsync(host, s => s with { IsHidden = false })
Orchestrator\ApplicationOrchestrator.cs (6)
104await _notificationService.PublishUpdateAsync(resourceWithConnectionString, state => state with 230await _notificationService.PublishUpdateAsync(resource, s => s with { Urls = [.. urls] }).ConfigureAwait(false); 302: notificationService.PublishUpdateAsync(resource, stateFactory); 687await _notificationService.PublishUpdateAsync(context.Resource, s => s with { State = stateSnapshot }).ConfigureAwait(false); 756await _notificationService.PublishUpdateAsync(child, s => s with 784await _notificationService.PublishUpdateAsync(resource, s =>
Orchestrator\ParameterProcessor.cs (1)
993await notificationService.PublishUpdateAsync(parameterResource, s =>
Aspire.Hosting.Azure (13)
AzureProvisioningController.cs (3)
3771await notificationService.PublishUpdateAsync(resource, state => ApplyActiveOperationProperties(resource, state)).ConfigureAwait(false); 3811await notificationService.PublishUpdateAsync(targetResource, state => ApplyActiveOperationProperties(targetResource, stateFactory(state))).ConfigureAwait(false); 4307await notificationService.PublishUpdateAsync(azureEnvironmentResource, existingState => ApplyActiveOperationProperties(azureEnvironmentResource, existingState with
Provisioning\Provisioners\BicepProvisioner.cs (10)
128await notificationService.PublishUpdateAsync(resource, state => 330await notificationService.PublishUpdateAsync(resource, state => state with 444await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 530await notificationService.PublishUpdateAsync(resource, state => state with 552await notificationService.PublishUpdateAsync(resource, state => 586await notificationService.PublishUpdateAsync(resource, state => 659await notificationService.PublishUpdateAsync(resource, state => state with 690await notificationService.PublishUpdateAsync(resource, state => 821await notificationService.PublishUpdateAsync(resource, state => 989await notificationService.PublishUpdateAsync(resource, state =>
Aspire.Hosting.Azure.EntraId (2)
EntraIdResourceExtensions.cs (2)
256await evt.Notifications.PublishUpdateAsync(resource, snapshot => snapshot with 314return evt.Notifications.PublishUpdateAsync(resource, snapshot => snapshot with
Aspire.Hosting.Azure.EntraId.Tests (9)
EntraIdInitializationTests.cs (9)
248await notifications.PublishUpdateAsync(entra.Resource, snapshot => snapshot with { State = new("Missing subscription configuration", KnownResourceStateStyles.Error) }); 274await notifications.PublishUpdateAsync(entra.Resource, snapshot => snapshot); 283await notifications.PublishUpdateAsync(entra.Resource, snapshot => snapshot with { State = KnownResourceStates.Waiting }); 287await notifications.PublishUpdateAsync(entra.Resource, snapshot => snapshot with { State = KnownResourceStates.Running }); 316await notifications.PublishUpdateAsync(entra.Resource, snapshot => snapshot with 332await notifications.PublishUpdateAsync(entra.Resource, snapshot => snapshot with { State = KnownResourceStates.Waiting }); 369await notifications.PublishUpdateAsync(entra.Resource, snapshot => snapshot); 437await notifications.PublishUpdateAsync(entra.Resource, snapshot => snapshot with 499await notifications.PublishUpdateAsync(resource, snapshot => snapshot);
Aspire.Hosting.Azure.Functions (1)
DurableTask\DurableTaskResourceExtensions.cs (1)
240await notifications.PublishUpdateAsync(r, snapshot => snapshot with
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
315await rns.PublishUpdateAsync(databaseResource, state => state with
Aspire.Hosting.Azure.Tests (61)
AzureBicepProvisionerTests.cs (1)
1329await notifications.PublishUpdateAsync(resource, state => state with
AzureEnvironmentResourceExtensionsTests.cs (60)
99await notifications.PublishUpdateAsync(directory.Resource, snapshot => snapshot with 626await notifications.PublishUpdateAsync(environmentResource, state => state with 635await notifications.PublishUpdateAsync(storage.Resource, state => state with 1049await notifications.PublishUpdateAsync(keyVault.Resource, state => state with { State = KnownResourceStates.Running }); 1084await notifications.PublishUpdateAsync(postgres.Resource, state => state with { State = KnownResourceStates.Running }); 1707await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = new("Waiting for Deployment", KnownResourceStateStyles.Info) }); 1762await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = new("Creating ARM Deployment", KnownResourceStateStyles.Info) }); 1839await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = new(AzureProvisioningController.WaitingForDeploymentState, KnownResourceStateStyles.Info) }); 2009await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 2047await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 2130await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = new("Failed to Provision", KnownResourceStateStyles.Error) }); 2131await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running }); 2225await notifications.PublishUpdateAsync(keyVault.Resource, state => state with { State = new("Failed to Provision", KnownResourceStateStyles.Error) }); 2294await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running }); 2295await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 2296await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running }); 2373await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 2441await notifications.PublishUpdateAsync(storage.Resource, state => state with 2448await notifications.PublishUpdateAsync(storage2.Resource, state => state with 2516await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 2517await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running }); 2569await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running }); 2570await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 2571await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running }); 2630await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running }); 2631await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 3047await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running }); 3048await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 3049await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running }); 3121await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = new("Failed to Provision", KnownResourceStateStyles.Error) }); 3122await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running }); 3175await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 3235await notifications.PublishUpdateAsync(visibleResource, state => state with { State = KnownResourceStates.Running }); 3290await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 3363await notifications.PublishUpdateAsync(storage.Resource, state => state with 3423await notifications.PublishUpdateAsync(storage.Resource, state => state with 3496await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 3549await notifications.PublishUpdateAsync(storage.Resource, state => state with 3612await notifications.PublishUpdateAsync(storage.Resource, state => state with 3684await notifications.PublishUpdateAsync(storage.Resource, state => state with 3741await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 3742await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running }); 3956await notifications.PublishUpdateAsync(storage.Resource, state => state with 4099await notifications.PublishUpdateAsync(storage2, state => state with 4186await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 4258await notifications.PublishUpdateAsync(keyVault.Resource, state => state with { State = new("Canceled", KnownResourceStateStyles.Info) }); 4338await notifications.PublishUpdateAsync(keyVault.Resource, state => state with { State = new("Canceled", KnownResourceStateStyles.Info) }); 4412await notifications.PublishUpdateAsync(postgres.Resource, state => state with { State = KnownResourceStates.Running }); 4464await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 4510await notifications.PublishUpdateAsync(keyVault.Resource, state => state with { State = KnownResourceStates.Running }); 4556await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 4670await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running }); 4671await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 4723await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running }); 4724await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 4781await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running }); 4782await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running }); 4783await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running }); 4825await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running }); 4826await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running });
Aspire.Hosting.Blazor (4)
BlazorGatewayExtensions.cs (1)
533await notificationService.PublishUpdateAsync(reg.AppBuilder.Resource, snapshot => snapshot with
BrowserDebuggerHelper.cs (3)
197await notificationService.PublishUpdateAsync(commandTarget.Resource, s => s).ConfigureAwait(false); 256await notificationService.PublishUpdateAsync(commandTarget.Resource, s => s).ConfigureAwait(false); 324await resourceNotificationService.PublishUpdateAsync(commandTargetResource, s => s).ConfigureAwait(false);
Aspire.Hosting.Blazor.Tests (5)
BrowserDebuggerHelperTests.cs (5)
27await notificationService.PublishUpdateAsync( 40await notificationService.PublishUpdateAsync( 59await notificationService.PublishUpdateAsync( 73await notificationService.PublishUpdateAsync( 96await notificationService.PublishUpdateAsync(
Aspire.Hosting.Browsers (2)
BrowserLogsBuilderExtensions.cs (1)
292notifications.PublishUpdateAsync(browserLogsResource, snapshot => snapshot);
BrowserLogsConfigurationManager.cs (1)
421return resourceNotificationService.PublishUpdateAsync(resource, snapshot => snapshot with
Aspire.Hosting.Browsers.Tests (3)
BrowserLogsBuilderExtensionsTests.cs (1)
1352await app.ResourceNotifications.PublishUpdateAsync(web.Resource, snapshot => snapshot with
src\Aspire.Hosting.Browsers\BrowserLogsBuilderExtensions.cs (1)
292notifications.PublishUpdateAsync(browserLogsResource, snapshot => snapshot);
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (1)
421return resourceNotificationService.PublishUpdateAsync(resource, snapshot => snapshot with
Aspire.Hosting.DevTunnels (7)
DevTunnelMonitor.cs (2)
615await _notifications.PublishUpdateAsync(_resource, snapshot => WithConnectionHealth(snapshot, _resource.Name, healthy, description)).ConfigureAwait(false); 683return _notifications.PublishUpdateAsync(port, snapshot => snapshot with
DevTunnelResourceBuilderExtensions.cs (5)
197await notifications.PublishUpdateAsync(portResource, snapshot => snapshot with 724await notifications.PublishUpdateAsync(portResource, snapshot => 748await notifications.PublishUpdateAsync(portResource, snapshot => 816await notifications.PublishUpdateAsync(portResource, snapshot => snapshot with 837await notifications.PublishUpdateAsync(portResource, snapshot => stoppedSnapshot = snapshot with
Aspire.Hosting.DevTunnels.Tests (7)
DevTunnelMonitorTests.cs (6)
183await test.App.ResourceNotifications.PublishUpdateAsync(test.Port, s => s with 207await test.App.ResourceNotifications.PublishUpdateAsync(test.Port, s => s with 317async (_, _) => await test.App.ResourceNotifications.PublishUpdateAsync(test.Port, s => s with 376await test.App.ResourceNotifications.PublishUpdateAsync(test.Port, s => s with 408await test.App.ResourceNotifications.PublishUpdateAsync(test.Port, s => s with 539await test.App.ResourceNotifications.PublishUpdateAsync(test.Tunnel, s => s with { State = KnownResourceStates.FailedToStart });
TestDevTunnelMonitor.cs (1)
61await App.ResourceNotifications.PublishUpdateAsync(Tunnel, s => s with { State = KnownResourceStates.Running });
Aspire.Hosting.Dotnet.Tests (43)
DotnetProjectBuildCoordinatorTests.cs (43)
236await app.ResourceNotifications.PublishUpdateAsync( 255await app.ResourceNotifications.PublishUpdateAsync( 732await app.ResourceNotifications.PublishUpdateAsync( 1719await app.ResourceNotifications.PublishUpdateAsync( 1739await app.ResourceNotifications.PublishUpdateAsync( 1770await app.ResourceNotifications.PublishUpdateAsync( 1810await app.ResourceNotifications.PublishUpdateAsync( 1847await app.ResourceNotifications.PublishUpdateAsync( 1897await app.ResourceNotifications.PublishUpdateAsync( 1907await app.ResourceNotifications.PublishUpdateAsync( 1921await app.ResourceNotifications.PublishUpdateAsync( 2019await app.ResourceNotifications.PublishUpdateAsync( 2024await app.ResourceNotifications.PublishUpdateAsync( 2060await app.ResourceNotifications.PublishUpdateAsync( 2070await app.ResourceNotifications.PublishUpdateAsync( 2079await app.ResourceNotifications.PublishUpdateAsync( 2083await app.ResourceNotifications.PublishUpdateAsync( 2125await app.ResourceNotifications.PublishUpdateAsync( 2182await app.ResourceNotifications.PublishUpdateAsync( 2190await app.ResourceNotifications.PublishUpdateAsync( 2197await app.ResourceNotifications.PublishUpdateAsync( 2282await app.ResourceNotifications.PublishUpdateAsync( 2422await app.ResourceNotifications.PublishUpdateAsync( 2681await app.ResourceNotifications.PublishUpdateAsync( 2781await app.ResourceNotifications.PublishUpdateAsync( 2796await app.ResourceNotifications.PublishUpdateAsync( 2911await app.ResourceNotifications.PublishUpdateAsync( 3042await app.ResourceNotifications.PublishUpdateAsync( 3084await app.ResourceNotifications.PublishUpdateAsync( 4285await app.ResourceNotifications.PublishUpdateAsync(builds[0], snapshot => snapshot with 4290await app.ResourceNotifications.PublishUpdateAsync(builds[1], snapshot => snapshot with 4383await app.ResourceNotifications.PublishUpdateAsync(build, snapshot => snapshot with 4391await app.ResourceNotifications.PublishUpdateAsync(build, snapshot => snapshot with 4398await app.ResourceNotifications.PublishUpdateAsync(build, snapshot => snapshot with 4405await app.ResourceNotifications.PublishUpdateAsync(build, snapshot => snapshot with 4441await app.ResourceNotifications.PublishUpdateAsync(build, snapshot => snapshot with 4463await app.ResourceNotifications.PublishUpdateAsync(build, snapshot => snapshot with 4468await app.ResourceNotifications.PublishUpdateAsync(rebuilder, snapshot => snapshot with 4476await app.ResourceNotifications.PublishUpdateAsync(rebuilder, snapshot => snapshot with 4483await app.ResourceNotifications.PublishUpdateAsync(rebuilder, snapshot => snapshot with 4525await app.ResourceNotifications.PublishUpdateAsync(finalBuild, snapshot => snapshot with 4558await app.ResourceNotifications.PublishUpdateAsync( 4584await app.ResourceNotifications.PublishUpdateAsync(
Aspire.Hosting.EntityFrameworkCore (8)
EFResourceBuilderExtensions.cs (8)
516await notificationService.PublishUpdateAsync(toolResource, s => s with 552await notificationService.PublishUpdateAsync(toolResource, s => s with 564await notificationService.PublishUpdateAsync(toolResource, s => s with 576await notificationService.PublishUpdateAsync(toolResource, s => s with 594await notificationService.PublishUpdateAsync(toolResource, s => s with 631await notificationService.PublishUpdateAsync(toolResource, s => s with 656await notificationService.PublishUpdateAsync(toolResource, s => s with 980resourceNotificationService.PublishUpdateAsync(migrationResource, s => s with
Aspire.Hosting.EntityFrameworkCore.Tests (2)
TestServices\CoordinatedBuildTestHelpers.cs (1)
21await app.ResourceNotifications.PublishUpdateAsync(
TestServices\TestEfTool.cs (1)
41await context.Services.GetRequiredService<ResourceNotificationService>().PublishUpdateAsync(
Aspire.Hosting.Foundry (20)
FoundryExtensions.cs (9)
349await rns.PublishUpdateAsync(resource, state => state with 369await rns.PublishUpdateAsync(resource, state => state with 377await rns.PublishUpdateAsync(resource, state => state with 409await rns.PublishUpdateAsync(deployment, state => state with 428await rns.PublishUpdateAsync(deployment, state => state with 447await rns.PublishUpdateAsync(deployment, state => state with 457await rns.PublishUpdateAsync(deployment, state => state with 465await rns.PublishUpdateAsync(deployment, state => state with 476await rns.PublishUpdateAsync(deployment, state => state with
PromptAgent\AzurePromptAgentResource.cs (6)
331await notificationService.PublishUpdateAsync(tool, s => s with 337await notificationService.PublishUpdateAsync(this, s => s with 344await notificationService.PublishUpdateAsync(this, s => s with 358await notificationService.PublishUpdateAsync(tool, s => s with 367await notificationService.PublishUpdateAsync(this, s => s with 380await notificationService.PublishUpdateAsync(this, s => s with
Toolbox\FoundryToolboxResource.cs (5)
333await notificationService.PublishUpdateAsync(this, snapshot => snapshot with 343await notificationService.PublishUpdateAsync(this, snapshot => snapshot with 355await notificationService.PublishUpdateAsync(this, snapshot => snapshot with 380await notificationService.PublishUpdateAsync(this, snapshot => snapshot with 404await notificationService.PublishUpdateAsync(this, snapshot => snapshot with
Aspire.Hosting.Foundry.Tests (1)
ToolboxTests.cs (1)
927await notifications.PublishUpdateAsync(mcp.Resource, snapshot => snapshot with
Aspire.Hosting.Go.Tests (1)
GoRunDebuggingTests.cs (1)
265await app.Services.GetRequiredService<ResourceNotificationService>().PublishUpdateAsync(go.Resource, snapshot => snapshot with
Aspire.Hosting.Maui (6)
Lifecycle\MauiBuildQueueEventSubscriber.cs (3)
113await notificationService.PublishUpdateAsync(resource, s => s with 125await notificationService.PublishUpdateAsync(resource, s => s with 582await notificationService.PublishUpdateAsync(resource, s =>
Lifecycle\UnsupportedPlatformEventSubscriber.cs (1)
34await notificationService.PublishUpdateAsync(resource, s => s with
Utilities\MauiAndroidEnvironmentAnnotation.cs (1)
107await notificationService.PublishUpdateAsync(resource, s => s with
Utilities\MauiiOSEnvironmentAnnotation.cs (1)
107await notificationService.PublishUpdateAsync(resource, s => s with
Aspire.Hosting.Maui.Tests (12)
MauiBuildQueueTests.cs (7)
603await env.NotificationService.PublishUpdateAsync(env.Android, s => s with 670await env.NotificationService.PublishUpdateAsync(env.Android, s => s with 691await env.NotificationService.PublishUpdateAsync(env.Android, s => s with 740await env.NotificationService.PublishUpdateAsync(env.Android, s => s with 758await env.NotificationService.PublishUpdateAsync(env.Android, s => s with 766await env.NotificationService.PublishUpdateAsync(env.Android, s => s with 938await env.NotificationService.PublishUpdateAsync(env.Android, s => s with
MauiPlatformExtensionsTests.cs (5)
922.PublishUpdateAsync(dashboard.Resource, snapshot => snapshot with 1219.PublishUpdateAsync(dashboard.Resource, snapshot => snapshot with 1239.PublishUpdateAsync(dashboard.Resource, snapshot => snapshot with 1330await notificationService.PublishUpdateAsync(dashboard.Resource, snapshot => snapshot with 1346await notificationService.PublishUpdateAsync(dashboard.Resource, snapshot => snapshot with
Aspire.Hosting.MongoDB (7)
ReplicaSet\MongoDBReplicaSetBuilderExtensions.cs (7)
118await evt.Notifications.PublishUpdateAsync(resource, s => s with 136await evt.Notifications.PublishUpdateAsync(resource, s => s with 340await evt.Notifications.PublishUpdateAsync(resource, s => s with 348await evt.Notifications.PublishUpdateAsync(resource, s => s with 472.PublishUpdateAsync(builder.Resource, s => 488.PublishUpdateAsync(builder.Resource, s => 510.PublishUpdateAsync(builder.Resource, s =>
Aspire.Hosting.MongoDB.Tests (2)
ReplicaSet\AddMongoDBReplicaSetTests.cs (1)
336await notifications.PublishUpdateAsync(replicaSet.Resource, snapshot => snapshot with
tests\Shared\ContainerReplCommandTestBase.cs (1)
77await notifications.PublishUpdateAsync(resource.Resource, snapshot => snapshot with
Aspire.Hosting.MySql.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
77await notifications.PublishUpdateAsync(resource.Resource, snapshot => snapshot with
Aspire.Hosting.OpenAI (2)
OpenAIExtensions.cs (2)
84await evt.Notifications.PublishUpdateAsync(r, s => s with 130await evt.Notifications.PublishUpdateAsync(r, s => s with
Aspire.Hosting.PostgreSQL.Tests (2)
PostgresReplCommandTests.cs (1)
95await app.ResourceNotifications.PublishUpdateAsync(postgres.Resource, s => s with { State = KnownResourceStates.FailedToStart });
tests\Shared\ContainerReplCommandTestBase.cs (1)
77await notifications.PublishUpdateAsync(resource.Resource, snapshot => snapshot with
Aspire.Hosting.Redis.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
77await notifications.PublishUpdateAsync(resource.Resource, snapshot => snapshot with
Aspire.Hosting.SqlServer.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
77await notifications.PublishUpdateAsync(resource.Resource, snapshot => snapshot with
Aspire.Hosting.Testing.Tests (4)
DashboardUrlTests.cs (2)
110await app.ResourceNotifications.PublishUpdateAsync( 137await app.ResourceNotifications.PublishUpdateAsync(
ResourceLoggerForwarderServiceTests.cs (2)
56await resourceNotificationService.PublishUpdateAsync(myresource, snapshot => snapshot with { State = "Running" }); 106await resourceNotificationService.PublishUpdateAsync(myresource, snapshot => snapshot with { State = "Running" });
Aspire.Hosting.Tests (184)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (27)
182await notificationService.PublishUpdateAsync(custom.Resource, s => s with 351await notificationService.PublishUpdateAsync(custom.Resource, s => s with 403await notificationService.PublishUpdateAsync(custom.Resource, s => s with 450await notificationService.PublishUpdateAsync(owner.Resource, s => s with 499await notificationService.PublishUpdateAsync(owner.Resource, s => s with 561await notificationService.PublishUpdateAsync(owner.Resource, s => s with 590await notificationService.PublishUpdateAsync(owner.Resource, s => s with 637await notificationService.PublishUpdateAsync(owner.Resource, s => s with 664await notificationService.PublishUpdateAsync(owner.Resource, s => s with 707await notificationService.PublishUpdateAsync(owner.Resource, s => s with 735await notificationService.PublishUpdateAsync(owner.Resource, s => s with 778await notificationService.PublishUpdateAsync(owner.Resource, s => s with 803await notificationService.PublishUpdateAsync(owner.Resource, s => s with 867await notificationService.PublishUpdateAsync(mcpResource.Resource, s => s with 871await notificationService.PublishUpdateAsync(owner.Resource, s => s with 927await notificationService.PublishUpdateAsync(owner.Resource, s => s with 1080await notificationService.PublishUpdateAsync(owner.Resource, s => s with 1143await notificationService.PublishUpdateAsync(owner.Resource, s => s with 1159await notificationService.PublishUpdateAsync(owner.Resource, s => s with 1196await notificationService.PublishUpdateAsync(custom.Resource, s => s with 1268await notificationService.PublishUpdateAsync(custom.Resource, s => s with 1304await notificationService.PublishUpdateAsync(custom.Resource, s => s with 1344await notificationService.PublishUpdateAsync(custom.Resource, s => s with 1403await notificationService.PublishUpdateAsync(custom.Resource, s => s with 1439await notificationService.PublishUpdateAsync(custom.Resource, s => s with 1992await notificationService.PublishUpdateAsync(hidden.Resource, snapshot => snapshot with 2216await notificationService.PublishUpdateAsync(dashboard, snapshot => snapshot with
Codespaces\CodespacesUrlRewriterTests.cs (1)
95await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with
Dashboard\DashboardEventHandlersTests.cs (2)
64await resourceNotificationService.PublishUpdateAsync(dashboardResource, s => s).DefaultTimeout(); 135await resourceNotificationService.PublishUpdateAsync(dashboardResource, s => s).DefaultTimeout();
Dashboard\DashboardServiceDataTerminalTests.cs (4)
37await notifications.PublishUpdateAsync(resource, s => s with { State = new ResourceStateSnapshot("Running", null) }).DefaultTimeout(); 52await notifications.PublishUpdateAsync(resource, s => s with { State = new ResourceStateSnapshot("Running", null) }).DefaultTimeout(); 67await notifications.PublishUpdateAsync(resource, s => s with { State = new ResourceStateSnapshot("Running", null) }).DefaultTimeout(); 130await notifications.PublishUpdateAsync(resource, s => s with { State = new ResourceStateSnapshot("Running", null) }).DefaultTimeout();
Dashboard\DashboardServiceTests.cs (4)
210await resourceNotificationService.PublishUpdateAsync(testResource, s => 315await resourceNotificationService.PublishUpdateAsync(testResource, s => 374await resourceNotificationService.PublishUpdateAsync(testResource, s => 437await resourceNotificationService.PublishUpdateAsync(testResource, s =>
Health\ResourceHealthCheckServiceTests.cs (23)
33await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 41await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 73await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 81await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 116await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 124await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 163await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 178await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 186await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 229await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 270await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 313await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 349await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 380await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 442await app.ResourceNotifications.PublishUpdateAsync(parent.Resource, s => s with 487await app.ResourceNotifications.PublishUpdateAsync(parent.Resource, s => s with 538await app.ResourceNotifications.PublishUpdateAsync(parent.Resource, s => s with 546await app.ResourceNotifications.PublishUpdateAsync(child.Resource, s => s with 582await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 590await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 628await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 636await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with 668await app.ResourceNotifications.PublishUpdateAsync(resource.Resource, s => s with
Lifecycle\TerminalHostFailureDiagnosticServiceTests.cs (6)
32await notifications.PublishUpdateAsync(host, s => s with 71await notifications.PublishUpdateAsync(host, s => s with 102await notifications.PublishUpdateAsync(host, s => s with 143await notifications.PublishUpdateAsync(host, s => s with 181await notifications.PublishUpdateAsync(host, s => s with 196await notifications.PublishUpdateAsync(host, s => s with
Orchestrator\ApplicationOrchestratorTests.cs (3)
1462await resourceNotificationService.PublishUpdateAsync(waiter.Resource, s => s with { State = KnownResourceStates.Starting }).DefaultTimeout(); 1522await resourceNotificationService.PublishUpdateAsync(waiter.Resource, s => s with { State = KnownResourceStates.Starting }); 1655await @event.Notifications.PublishUpdateAsync(resource, s => s with
ResourceNotificationTests.cs (89)
87await notificationService.PublishUpdateAsync(resource, state => state).DefaultTimeout(); 113await notificationService.PublishUpdateAsync(resource, snapshot => snapshot).DefaultTimeout(); 131await notificationService.PublishUpdateAsync(resource.Resource, snapshot => snapshot with 148await notificationService.PublishUpdateAsync(resource.Resource, snapshot => snapshot).DefaultTimeout(); 160await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 167await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 190await notificationService.PublishUpdateAsync(resource, snapshot => snapshot).DefaultTimeout(); 191await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 195await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 232await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout(); 234await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout(); 263await notificationService.PublishUpdateAsync(resource, snapshot => 310await notificationService.PublishUpdateAsync(resource1, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout(); 312await notificationService.PublishUpdateAsync(resource2, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout(); 351await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 367await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 382await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 397await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout(); 419await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = KnownResourceStates.Running }).DefaultTimeout(); 441await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout(); 467await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout(); 484await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 535await notificationService.PublishUpdateAsync(dependency1, s => s with 548await notificationService.PublishUpdateAsync(dependency2, s => s with 572await notificationService.PublishUpdateAsync(dependency, s => s with 599await notificationService.PublishUpdateAsync(dependency1, s => s with 604await notificationService.PublishUpdateAsync(dependency2, s => s with 639await notificationService.PublishUpdateAsync(dependency1, s => 657await notificationService.PublishUpdateAsync(dependency2, s => 695await notificationService.PublishUpdateAsync(dependency1, s => s with 709await notificationService.PublishUpdateAsync(dependency2, s => s with 733await notificationService.PublishUpdateAsync(resource, s => s with 749await notificationService.PublishUpdateAsync(dependency, s => s with 776await notificationService.PublishUpdateAsync(resource, s => s with { State = state }).DefaultTimeout(); 781await notificationService.PublishUpdateAsync(dependency, s => s with 829await notificationService.PublishUpdateAsync(dependency, s => s with 859await notificationService.PublishUpdateAsync(dependency, s => s with 884await notificationService.PublishUpdateAsync(resource, s => s with 899await notificationService.PublishUpdateAsync(dependency, s => s with 938await notificationService.PublishUpdateAsync(dependency, s => s with 1001await notificationService.PublishUpdateAsync(resource, s => s with 1010await notificationService.PublishUpdateAsync(resource, s => s with 1026await notificationService.PublishUpdateAsync(dependency, s => s with 1031await notificationService.PublishUpdateAsync(resource, s => s with 1059await notificationService.PublishUpdateAsync(dependency, s => s with 1124await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 1135await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 1145await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "NewState" }).DefaultTimeout(); 1155await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = null }).DefaultTimeout(); 1165await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "" }).DefaultTimeout(); 1175await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = " " }).DefaultTimeout(); 1193await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { CreationTimeStamp = createdDate }).DefaultTimeout(); 1194await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 1195await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { ExitCode = 0 }).DefaultTimeout(); 1271await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1278await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1323await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1359await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1490await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1496await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1535await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1560await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1568await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1594await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1617await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1631await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1657await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1705await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1723await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1745await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1753await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1766await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1784await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1801await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1817await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1822await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 1871await notificationService.PublishUpdateAsync(resourceBuilder.Resource, snapshot => snapshot with { State = state, ExitCode = exitCode }).DefaultTimeout(); 1915await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 1919await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout(); 1924await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout(); 1980await notificationService.PublishUpdateAsync(resource, BuildSnapshot).DefaultTimeout(); 1984await notificationService.PublishUpdateAsync(resource, BuildSnapshot).DefaultTimeout(); 1989await notificationService.PublishUpdateAsync(resource, snapshot => BuildSnapshot(snapshot) with 2009await notificationService.PublishUpdateAsync(resource, static snapshot => snapshot).DefaultTimeout(); 2013await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 2033await notificationService.PublishUpdateAsync(resource, static snapshot => snapshot).DefaultTimeout(); 2036await notificationService.PublishUpdateAsync(resource, snapshot => MutateProperty(snapshot, property)).DefaultTimeout(); 2052await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with 2065await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with
WaitForTests.cs (17)
111await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 142await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 182await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 220await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 331await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 365await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 373await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 412await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 420await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 460await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 507await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 562await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 616await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 767await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with 831await notificationService.PublishUpdateAsync(dependency, s => s with 879await notificationService.PublishUpdateAsync(dependency.Resource, s => s with 973await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with
WithHttpCommandTests.cs (6)
627await app.ResourceNotifications.PublishUpdateAsync(serviceA.Resource, s => s with 950await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with 962await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with 1005await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with 1020await app.ResourceNotifications.PublishUpdateAsync(service.Resource, s => s with 1059await app.ResourceNotifications.PublishUpdateAsync(resource, s => s with
WithUrlsTests.cs (2)
94await e.Notifications.PublishUpdateAsync(custom, s => s with 101.PublishUpdateAsync(e.Resource, s => s with
Aspire.Hosting.Valkey.Tests (1)
tests\Shared\ContainerReplCommandTestBase.cs (1)
77await notifications.PublishUpdateAsync(resource.Resource, snapshot => snapshot with
CustomResources.AppHost (11)
TalkingClockResource.cs (9)
76await notification.PublishUpdateAsync(resource, s => s with 81await notification.PublishUpdateAsync(resource.TickHand, s => s with 86await notification.PublishUpdateAsync(resource.TockHand, s => s with 100await notification.PublishUpdateAsync(resource, 102await notification.PublishUpdateAsync(resource.TickHand, 104await notification.PublishUpdateAsync(resource.TockHand, 110await notification.PublishUpdateAsync(resource, 112await notification.PublishUpdateAsync(resource.TickHand, 114await notification.PublishUpdateAsync(resource.TockHand,
TestResource.cs (2)
54await notificationService.PublishUpdateAsync(resource, state => state with 65await notificationService.PublishUpdateAsync(resource, state => state with
HealthChecksSandbox.AppHost (1)
AppHost.cs (1)
135await notificationService.PublishUpdateAsync(
Stress.AppHost (2)
TestResource.cs (2)
168await notificationService.PublishUpdateAsync(resource, state => state with 179await notificationService.PublishUpdateAsync(resource, state => state with