12 references to ResourceSnapshotChangeType
Aspire.Hosting (12)
Dashboard\DashboardService.cs (2)
84if (update.ChangeType is ResourceSnapshotChangeType.Upsert) 88else if (update.ChangeType is ResourceSnapshotChangeType.Delete)
Dashboard\DashboardServiceData.cs (1)
70await _resourcePublisher.IntegrateAsync(@event.Resource, snapshot, ResourceSnapshotChangeType.Upsert)
Dashboard\ResourcePublisher.cs (4)
84internal async ValueTask IntegrateAsync(IResource source, ResourceSnapshot snapshot, ResourceSnapshotChangeType changeType) 92case ResourceSnapshotChangeType.Upsert: 96case ResourceSnapshotChangeType.Delete: 116ResourceSnapshotChangeType ChangeType,
Dcp\DcpExecutor.cs (5)
353var changeType = watchEventType switch 355WatchEventType.Added or WatchEventType.Modified => ResourceSnapshotChangeType.Upsert, 356WatchEventType.Deleted => ResourceSnapshotChangeType.Delete, 357_ => throw new System.ComponentModel.InvalidEnumArgumentException($"Cannot convert {nameof(WatchEventType)} with value {watchEventType} into enum of type {nameof(ResourceSnapshotChangeType)}.") 366if (changeType == ResourceSnapshotChangeType.Delete)