12 references to CaptureAllResources
aspire (2)
Backchannel\ResourceSnapshotWatcher.cs (1)
206/// Callers should first capture the initial state with <see cref="CaptureAllResources"/>.
Commands\DescribeCommand.cs (1)
290var initialCapture = resourceWatcher.CaptureAllResources();
Aspire.Cli.Tests (10)
Backchannel\ResourceSnapshotWatcherTests.cs (10)
138var snapshot = Assert.Single(watcher.CaptureAllResources().Resources); 183var snapshot = Assert.Single(watcher.CaptureAllResources().Resources); 230var snapshot = Assert.Single(watcher.CaptureAllResources().Resources); 284var initialCapture = watcher.CaptureAllResources(); 293var staleCapture = watcher.CaptureAllResources(); 308var currentSnapshot = Assert.Single(watcher.CaptureAllResources().Resources); 413var initialCapture = watcher.CaptureAllResources(); 460var initialCapture = watcher.CaptureAllResources(); 534Assert.Equal([firstSnapshot], watcher.CaptureAllResources().Resources); 545var finalCapture = watcher.CaptureAllResources();