13 references to CaptureAllResources
aspire (3)
Backchannel\ResourceSnapshotWatcher.cs (1)
229/// Callers should first capture the initial state with <see cref="CaptureAllResources"/>.
Backchannel\TrayResourceHealthSubscription.cs (1)
43var initial = watcher.CaptureAllResources();
Commands\DescribeCommand.cs (1)
314var initialCapture = resourceWatcher.CaptureAllResources();
Aspire.Cli.Tests (10)
Backchannel\ResourceSnapshotWatcherTests.cs (10)
227var snapshot = Assert.Single(watcher.CaptureAllResources().Resources); 272var snapshot = Assert.Single(watcher.CaptureAllResources().Resources); 319var snapshot = Assert.Single(watcher.CaptureAllResources().Resources); 373var initialCapture = watcher.CaptureAllResources(); 382var staleCapture = watcher.CaptureAllResources(); 397var currentSnapshot = Assert.Single(watcher.CaptureAllResources().Resources); 502var initialCapture = watcher.CaptureAllResources(); 549var initialCapture = watcher.CaptureAllResources(); 623Assert.Equal([firstSnapshot], watcher.CaptureAllResources().Resources); 634var finalCapture = watcher.CaptureAllResources();