19 references to Upsert
Aspire.Hosting (4)
Dashboard\DashboardService.cs (1)
248if (update.ChangeType is ResourceSnapshotChangeType.Upsert)
Dashboard\DashboardServiceData.cs (1)
79await _resourcePublisher.IntegrateAsync(@event.Resource, snapshot, ResourceSnapshotChangeType.Upsert)
Dashboard\ResourcePublisher.cs (1)
92case ResourceSnapshotChangeType.Upsert:
Dcp\DcpExecutor.cs (1)
367WatchEventType.Added or WatchEventType.Modified => ResourceSnapshotChangeType.Upsert,
Aspire.Hosting.Tests (15)
Dashboard\ResourcePublisherTests.cs (15)
22await publisher.IntegrateAsync(new TestResource("A"), a, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 23await publisher.IntegrateAsync(new TestResource("B"), b, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 45await publisher.IntegrateAsync(new TestResource("C"), c, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 48Assert.Equal(ResourceSnapshotChangeType.Upsert, change.ChangeType); 75await publisher.IntegrateAsync(new TestResource("A"), a, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 76await publisher.IntegrateAsync(new TestResource("B"), b, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 88await publisher.IntegrateAsync(new TestResource("C"), c, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 99Assert.Equal(ResourceSnapshotChangeType.Upsert, v1.ChangeType); 100Assert.Equal(ResourceSnapshotChangeType.Upsert, v2.ChangeType); 122await publisher.IntegrateAsync(new TestResource("A"), a1, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 123await publisher.IntegrateAsync(new TestResource("A"), a2, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 124await publisher.IntegrateAsync(new TestResource("A"), a3, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 142await publisher.IntegrateAsync(new TestResource("A"), a, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 143await publisher.IntegrateAsync(new TestResource("B"), b, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 176await publisher.IntegrateAsync(new TestResource("A"), CreateResourceSnapshot("A"), ResourceSnapshotChangeType.Upsert).DefaultTimeout();