325 references to PublishUpdateAsync
Aspire.Hosting (24)
Aspire.Hosting.Azure (13)
Provisioning\Provisioners\BicepProvisioner.cs (10)
131await notificationService.PublishUpdateAsync(resource, state =>
333await notificationService.PublishUpdateAsync(resource, state => state with
447await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with
533await notificationService.PublishUpdateAsync(resource, state => state with
555await notificationService.PublishUpdateAsync(resource, state =>
584await notificationService.PublishUpdateAsync(resource, state =>
657await notificationService.PublishUpdateAsync(resource, state => state with
688await notificationService.PublishUpdateAsync(resource, state =>
819await notificationService.PublishUpdateAsync(resource, state =>
987await notificationService.PublishUpdateAsync(resource, state =>
Aspire.Hosting.Azure.Functions (1)
Aspire.Hosting.Azure.Kusto (1)
Aspire.Hosting.Azure.Tests (60)
AzureEnvironmentResourceExtensionsTests.cs (59)
330await notifications.PublishUpdateAsync(environmentResource, state => state with
339await notifications.PublishUpdateAsync(storage.Resource, state => state with
706await notifications.PublishUpdateAsync(keyVault.Resource, state => state with { State = KnownResourceStates.Running });
741await notifications.PublishUpdateAsync(postgres.Resource, state => state with { State = KnownResourceStates.Running });
1364await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = new("Waiting for Deployment", KnownResourceStateStyles.Info) });
1419await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = new("Creating ARM Deployment", KnownResourceStateStyles.Info) });
1496await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = new(AzureProvisioningController.WaitingForDeploymentState, KnownResourceStateStyles.Info) });
1666await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running });
1704await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running });
1787await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = new("Failed to Provision", KnownResourceStateStyles.Error) });
1788await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running });
1882await notifications.PublishUpdateAsync(keyVault.Resource, state => state with { State = new("Failed to Provision", KnownResourceStateStyles.Error) });
1951await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running });
1952await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running });
1953await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running });
2030await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running });
2098await notifications.PublishUpdateAsync(storage.Resource, state => state with
2105await notifications.PublishUpdateAsync(storage2.Resource, state => state with
2173await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running });
2174await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running });
2226await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running });
2227await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running });
2228await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running });
2287await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running });
2288await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running });
2704await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running });
2705await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running });
2706await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running });
2778await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = new("Failed to Provision", KnownResourceStateStyles.Error) });
2779await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running });
2832await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running });
2892await notifications.PublishUpdateAsync(visibleResource, state => state with { State = KnownResourceStates.Running });
2947await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running });
3020await notifications.PublishUpdateAsync(storage.Resource, state => state with
3080await notifications.PublishUpdateAsync(storage.Resource, state => state with
3153await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running });
3206await notifications.PublishUpdateAsync(storage.Resource, state => state with
3269await notifications.PublishUpdateAsync(storage.Resource, state => state with
3341await notifications.PublishUpdateAsync(storage.Resource, state => state with
3398await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running });
3399await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running });
3613await notifications.PublishUpdateAsync(storage.Resource, state => state with
3756await notifications.PublishUpdateAsync(storage2, state => state with
3843await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running });
3915await notifications.PublishUpdateAsync(keyVault.Resource, state => state with { State = new("Canceled", KnownResourceStateStyles.Info) });
3995await notifications.PublishUpdateAsync(keyVault.Resource, state => state with { State = new("Canceled", KnownResourceStateStyles.Info) });
4069await notifications.PublishUpdateAsync(postgres.Resource, state => state with { State = KnownResourceStates.Running });
4121await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running });
4167await notifications.PublishUpdateAsync(keyVault.Resource, state => state with { State = KnownResourceStates.Running });
4213await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running });
4327await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running });
4328await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running });
4380await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running });
4381await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running });
4438await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running });
4439await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running });
4440await notifications.PublishUpdateAsync(storage2.Resource, state => state with { State = KnownResourceStates.Running });
4482await notifications.PublishUpdateAsync(environmentResource, state => state with { State = KnownResourceStates.Running });
4483await notifications.PublishUpdateAsync(storage.Resource, state => state with { State = KnownResourceStates.Running });
Aspire.Hosting.Blazor (4)
Aspire.Hosting.Blazor.Tests (5)
Aspire.Hosting.Browsers (2)
Aspire.Hosting.Browsers.Tests (3)
Aspire.Hosting.DevTunnels (5)
Aspire.Hosting.EntityFrameworkCore (8)
Aspire.Hosting.Foundry (15)
Aspire.Hosting.GitHub.Models (1)
Aspire.Hosting.Maui (6)
Aspire.Hosting.Maui.Tests (3)
Aspire.Hosting.OpenAI (2)
Aspire.Hosting.Testing.Tests (4)
Aspire.Hosting.Tests (154)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (26)
181await notificationService.PublishUpdateAsync(custom.Resource, s => s with
346await notificationService.PublishUpdateAsync(custom.Resource, s => s with
403await notificationService.PublishUpdateAsync(owner.Resource, s => s with
452await notificationService.PublishUpdateAsync(owner.Resource, s => s with
514await notificationService.PublishUpdateAsync(owner.Resource, s => s with
543await notificationService.PublishUpdateAsync(owner.Resource, s => s with
590await notificationService.PublishUpdateAsync(owner.Resource, s => s with
617await notificationService.PublishUpdateAsync(owner.Resource, s => s with
660await notificationService.PublishUpdateAsync(owner.Resource, s => s with
688await notificationService.PublishUpdateAsync(owner.Resource, s => s with
731await notificationService.PublishUpdateAsync(owner.Resource, s => s with
756await notificationService.PublishUpdateAsync(owner.Resource, s => s with
820await notificationService.PublishUpdateAsync(mcpResource.Resource, s => s with
824await notificationService.PublishUpdateAsync(owner.Resource, s => s with
880await notificationService.PublishUpdateAsync(owner.Resource, s => s with
1033await notificationService.PublishUpdateAsync(owner.Resource, s => s with
1096await notificationService.PublishUpdateAsync(owner.Resource, s => s with
1112await notificationService.PublishUpdateAsync(owner.Resource, s => s with
1149await notificationService.PublishUpdateAsync(custom.Resource, s => s with
1221await notificationService.PublishUpdateAsync(custom.Resource, s => s with
1257await notificationService.PublishUpdateAsync(custom.Resource, s => s with
1297await notificationService.PublishUpdateAsync(custom.Resource, s => s with
1356await notificationService.PublishUpdateAsync(custom.Resource, s => s with
1392await notificationService.PublishUpdateAsync(custom.Resource, s => s with
1945await notificationService.PublishUpdateAsync(hidden.Resource, snapshot => snapshot with
2169await notificationService.PublishUpdateAsync(dashboard, snapshot => snapshot with
Health\ResourceHealthCheckServiceTests.cs (22)
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
ResourceNotificationTests.cs (64)
87await notificationService.PublishUpdateAsync(resource, state => state).DefaultTimeout();
122await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout();
124await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout();
153await notificationService.PublishUpdateAsync(resource, snapshot =>
200await notificationService.PublishUpdateAsync(resource1, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout();
202await notificationService.PublishUpdateAsync(resource2, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout();
241await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
257await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
271await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
287await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = KnownResourceStates.Running }).DefaultTimeout();
302await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout();
317await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout();
334await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
379await notificationService.PublishUpdateAsync(dependency1, s => s with
392await notificationService.PublishUpdateAsync(dependency2, s => s with
427await notificationService.PublishUpdateAsync(dependency1, s =>
445await notificationService.PublishUpdateAsync(dependency2, s =>
483await notificationService.PublishUpdateAsync(dependency1, s => s with
497await notificationService.PublishUpdateAsync(dependency2, s => s with
521await notificationService.PublishUpdateAsync(resource, s => s with
537await notificationService.PublishUpdateAsync(dependency, s => s with
564await notificationService.PublishUpdateAsync(resource, s => s with { State = state }).DefaultTimeout();
569await notificationService.PublishUpdateAsync(dependency, s => s with
617await notificationService.PublishUpdateAsync(dependency, s => s with
647await notificationService.PublishUpdateAsync(dependency, s => s with
672await notificationService.PublishUpdateAsync(resource, s => s with
687await notificationService.PublishUpdateAsync(dependency, s => s with
726await notificationService.PublishUpdateAsync(dependency, s => s with
789await notificationService.PublishUpdateAsync(resource, s => s with
798await notificationService.PublishUpdateAsync(resource, s => s with
814await notificationService.PublishUpdateAsync(dependency, s => s with
819await notificationService.PublishUpdateAsync(resource, s => s with
847await notificationService.PublishUpdateAsync(dependency, s => s with
912await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
923await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
933await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "NewState" }).DefaultTimeout();
943await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = null }).DefaultTimeout();
953await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "" }).DefaultTimeout();
963await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = " " }).DefaultTimeout();
981await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { CreationTimeStamp = createdDate }).DefaultTimeout();
982await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
983await notificationService.PublishUpdateAsync(resource1, snapshot => snapshot with { ExitCode = 0 }).DefaultTimeout();
1059await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with
1066await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with
1111await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with
1147await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with
1278await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with
1284await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with
1323await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with
1348await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with
1356await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with
1414await notificationService.PublishUpdateAsync(resourceBuilder.Resource, snapshot => snapshot with { State = state, ExitCode = exitCode }).DefaultTimeout();
1458await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
1462await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with { State = "SomeState" }).DefaultTimeout();
1467await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with { State = "SomeOtherState" }).DefaultTimeout();
1523await notificationService.PublishUpdateAsync(resource, BuildSnapshot).DefaultTimeout();
1527await notificationService.PublishUpdateAsync(resource, BuildSnapshot).DefaultTimeout();
1532await notificationService.PublishUpdateAsync(resource, snapshot => BuildSnapshot(snapshot) with
1552await notificationService.PublishUpdateAsync(resource, static snapshot => snapshot).DefaultTimeout();
1556await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with
1576await notificationService.PublishUpdateAsync(resource, static snapshot => snapshot).DefaultTimeout();
1579await notificationService.PublishUpdateAsync(resource, snapshot => MutateProperty(snapshot, property)).DefaultTimeout();
1595await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with
1608await notificationService.PublishUpdateAsync(resource, snapshot => snapshot with
WaitForTests.cs (15)
110await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with
141await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with
181await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with
219await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with
330await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with
364await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with
372await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with
411await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with
419await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with
459await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with
506await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with
561await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with
615await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with
766await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with
878await app.ResourceNotifications.PublishUpdateAsync(dependency.Resource, s => s with
CustomResources.AppHost (11)
HealthChecksSandbox.AppHost (1)
Stress.AppHost (2)