19 references to Upsert
Aspire.Hosting (4)
Dashboard\DashboardService.cs (1)
282if (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)
494WatchEventType.Added or WatchEventType.Modified => ResourceSnapshotChangeType.Upsert,
Aspire.Hosting.Tests (15)
Dashboard\ResourcePublisherTests.cs (15)
23await publisher.IntegrateAsync(new TestResource("A"), a, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 24await publisher.IntegrateAsync(new TestResource("B"), b, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 46await publisher.IntegrateAsync(new TestResource("C"), c, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 49Assert.Equal(ResourceSnapshotChangeType.Upsert, change.ChangeType); 76await publisher.IntegrateAsync(new TestResource("A"), a, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 77await publisher.IntegrateAsync(new TestResource("B"), b, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 89await publisher.IntegrateAsync(new TestResource("C"), c, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 100Assert.Equal(ResourceSnapshotChangeType.Upsert, v1.ChangeType); 101Assert.Equal(ResourceSnapshotChangeType.Upsert, v2.ChangeType); 123await publisher.IntegrateAsync(new TestResource("A"), a1, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 124await publisher.IntegrateAsync(new TestResource("A"), a2, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 125await publisher.IntegrateAsync(new TestResource("A"), a3, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 143await publisher.IntegrateAsync(new TestResource("A"), a, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 144await publisher.IntegrateAsync(new TestResource("B"), b, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 177await publisher.IntegrateAsync(new TestResource("A"), CreateResourceSnapshot("A"), ResourceSnapshotChangeType.Upsert).DefaultTimeout();