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