11 references to ResourceSnapshotAnnotation
Aspire.Hosting (3)
ApplicationModel\ResourceNotificationService.cs (1)
485if (resource.Annotations.OfType<ResourceSnapshotAnnotation>().LastOrDefault() is { } annotation)
Dcp\ApplicationExecutor.cs (2)
1205if (resource.TryGetLastAnnotation<ResourceSnapshotAnnotation>(out var initial) &&
Aspire.Hosting.Tests (8)
AddParameterTests.cs (4)
29var annotation = parameterResource.Annotations.OfType<ResourceSnapshotAnnotation>().SingleOrDefault(); 66var annotation = parameterResource.Annotations.OfType<ResourceSnapshotAnnotation>().SingleOrDefault();
Dashboard\DashboardResourceTests.cs (2)
49var initialSnapshot = Assert.Single(dashboard.Annotations.OfType<ResourceSnapshotAnnotation>());
ResourceNotificationTests.cs (2)
29var annotation = custom.Resource.Annotations.OfType<ResourceSnapshotAnnotation>().SingleOrDefault();