Implemented interface member:
method
CaptureAsync
Aspire.Hosting.Pipelines.IPipelineOutputSnapshotter<TSnapshot>.CaptureAsync(System.String, System.Threading.CancellationToken)
96 references to CaptureAsync
Aspire.Hosting.Tests (96)
Pipelines\PipelineOutputComparisonTests.cs (14)
30var before = await snapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 37var after = await snapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 73var exception = await Assert.ThrowsAsync<IOException>(() => snapshotter.CaptureAsync(root, TestContext.Current.CancellationToken)); 78var capture = await snapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 93var firstBefore = await first.CaptureAsync(root, TestContext.Current.CancellationToken); 96var secondBefore = await second.CaptureAsync(root, TestContext.Current.CancellationToken); 97var secondAfter = await second.CaptureAsync(root, TestContext.Current.CancellationToken); 98var firstAfter = await first.CaptureAsync(root, TestContext.Current.CancellationToken); 129await Assert.ThrowsAnyAsync<OperationCanceledException>(() => snapshotter.CaptureAsync(root, cts.Token)); 132var capture = await snapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 144var before = await snapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 146var after = await snapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 167var before = await snapshotter.CaptureAsync(parent, TestContext.Current.CancellationToken); 169var after = await snapshotter.CaptureAsync(root, TestContext.Current.CancellationToken);
Pipelines\PipelineOutputGitFingerprintTests.cs (32)
42var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 48var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 92var before = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 101var after = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 161var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 164var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 211var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 219var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 248var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 257var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 309var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 320var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 326var staged = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 331var sameTarget = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 348var retargeted = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 367var before = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 374var staged = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 379var changed = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 411var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 412var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 450var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 455var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 493var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 510var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 548var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 551var storageBefore = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 553var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 559var storageAfter = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 581var beforeSnapshot = await nativeSnapshotter.CaptureAsync(requested, TestContext.Current.CancellationToken); 584var afterSnapshot = await nativeSnapshotter.CaptureAsync(requested, TestContext.Current.CancellationToken); 599var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 605var failure = await Assert.ThrowsAsync<DistributedApplicationException>(() => nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken));
Pipelines\PipelineOutputResolutionTests.cs (2)
188snapshotter.CaptureAsync(workspace.Path, cancellation.Token)); 194snapshotter.CaptureAsync(workspace.Path, cancellation.Token));
Pipelines\PipelineOutputSelectionTests.cs (26)
75var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 78var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 229var before = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 231var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 236var retargeted = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 240var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 283var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 288var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 303var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 309var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 348var failure = await Assert.ThrowsAsync<DistributedApplicationException>(() => nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken)); 353var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 355var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 371var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 374var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 397var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 407var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 681var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 686var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 757var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 761var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 808var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 812var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 853var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 856var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 903return (await snapshotter.CaptureAsync(directory, TestContext.Current.CancellationToken)).Files.Keys.Order(PipelineOutputRoot.PathComparer).ToArray();
Pipelines\PipelineOutputStrategyTests.cs (22)
27var beforeSnapshot = await nativeSnapshotter.CaptureAsync(workspace.Path, TestContext.Current.CancellationToken); 29var afterSnapshot = await nativeSnapshotter.CaptureAsync(workspace.Path, TestContext.Current.CancellationToken); 52var snapshot = await nativeSnapshotter.CaptureAsync(workspace.Path, TestContext.Current.CancellationToken); 60snapshot = await nativeSnapshotter.CaptureAsync(workspace.Path, TestContext.Current.CancellationToken); 65snapshot = await nativeSnapshotter.CaptureAsync(workspace.Path, TestContext.Current.CancellationToken); 81var failure = await Assert.ThrowsAsync<DistributedApplicationException>(() => nativeSnapshotter.CaptureAsync(workspace.Path, TestContext.Current.CancellationToken)); 96var beforeSnapshot = await nativeSnapshotter.CaptureAsync(workspace.Path, TestContext.Current.CancellationToken); 99var afterSnapshot = await nativeSnapshotter.CaptureAsync(workspace.Path, TestContext.Current.CancellationToken); 116var beforeSnapshot = await nativeSnapshotter.CaptureAsync(missing, TestContext.Current.CancellationToken); 117var afterSnapshot = await nativeSnapshotter.CaptureAsync(missing, TestContext.Current.CancellationToken); 135var beforeSnapshot = await nativeSnapshotter.CaptureAsync(directory, TestContext.Current.CancellationToken); 140var afterSnapshot = await nativeSnapshotter.CaptureAsync(directory, TestContext.Current.CancellationToken); 181var failure = await Assert.ThrowsAsync<DistributedApplicationException>(() => nativeSnapshotter.CaptureAsync(workspace.Path, TestContext.Current.CancellationToken)); 232var failure = await Assert.ThrowsAsync<DistributedApplicationException>(() => nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken)); 237var snapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 273await nativeSnapshotter.CaptureAsync(workspace.Path, TestContext.Current.CancellationToken); 591Assert.Empty((await native.CaptureAsync(root, TestContext.Current.CancellationToken)).Files); 600var beforeSnapshot = await custom.CaptureAsync(root, TestContext.Current.CancellationToken); 602var unchanged = await custom.CaptureAsync(root, TestContext.Current.CancellationToken); 605var afterSnapshot = await custom.CaptureAsync(root, TestContext.Current.CancellationToken); 611Assert.Empty((await native.CaptureAsync(root, TestContext.Current.CancellationToken)).Files); 686var customCapture = await Assert.IsType<DefaultPipelineOutputSnapshotter>(nativeSnapshotter).CaptureAsync(root, TestContext.Current.CancellationToken);