19 references to Upsert
Aspire.Hosting (4)
Dashboard\DashboardService.cs (1)
319if (update.ChangeType is ResourceSnapshotChangeType.Upsert)
Dashboard\DashboardServiceData.cs (1)
107await _resourcePublisher.IntegrateAsync(@event.Resource, snapshot, ResourceSnapshotChangeType.Upsert)
Dashboard\ResourcePublisher.cs (1)
92case ResourceSnapshotChangeType.Upsert:
Dcp\DcpResourceWatcher.cs (1)
285WatchEventType.Added or WatchEventType.Modified => ResourceSnapshotChangeType.Upsert,
Aspire.Hosting.Tests (15)
Dashboard\ResourcePublisherTests.cs (15)
42await publisher.IntegrateAsync(new TestResource("A"), a, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 43await publisher.IntegrateAsync(new TestResource("B"), b, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 65await publisher.IntegrateAsync(new TestResource("C"), c, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 68Assert.Equal(ResourceSnapshotChangeType.Upsert, change.ChangeType); 95await publisher.IntegrateAsync(new TestResource("A"), a, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 96await publisher.IntegrateAsync(new TestResource("B"), b, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 108await publisher.IntegrateAsync(new TestResource("C"), c, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 119Assert.Equal(ResourceSnapshotChangeType.Upsert, v1.ChangeType); 120Assert.Equal(ResourceSnapshotChangeType.Upsert, v2.ChangeType); 142await publisher.IntegrateAsync(new TestResource("A"), a1, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 143await publisher.IntegrateAsync(new TestResource("A"), a2, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 144await publisher.IntegrateAsync(new TestResource("A"), a3, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 162await publisher.IntegrateAsync(new TestResource("A"), a, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 163await publisher.IntegrateAsync(new TestResource("B"), b, ResourceSnapshotChangeType.Upsert).DefaultTimeout(); 196await publisher.IntegrateAsync(new TestResource("A"), CreateResourceSnapshot("A"), ResourceSnapshotChangeType.Upsert).DefaultTimeout();