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\ApplicationExecutor.cs (5)
393var changeType = watchEventType switch 395WatchEventType.Added or WatchEventType.Modified => ResourceSnapshotChangeType.Upsert, 396WatchEventType.Deleted => ResourceSnapshotChangeType.Delete, 397_ => throw new System.ComponentModel.InvalidEnumArgumentException($"Cannot convert {nameof(WatchEventType)} with value {watchEventType} into enum of type {nameof(ResourceSnapshotChangeType)}.") 406if (changeType == ResourceSnapshotChangeType.Delete)