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