# IPipelineOutputSnapshotter<TSnapshot>

- Kind: `interface`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `17.0.0`
- Namespace: `Aspire.Hosting.Pipelines`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting/Pipelines/IPipelineOutputSnapshotter.cs)

Captures pipeline output as provider-defined snapshots.

## Definition

```csharp
namespace Aspire.Hosting.Pipelines;

public interface IPipelineOutputSnapshotter<TSnapshot>
    where TSnapshot : notnull
{
    // ...
}
```

## Type Parameters

- `TSnapshot` -- The captured representation shared with the matching comparer.

## Remarks

Implementations may replace default filesystem capture entirely.

## Methods

- [CaptureAsync(string, CancellationToken)](/reference/api/csharp/aspire.hosting/ipipelineoutputsnapshotter-1/methods.md#captureasync-string-cancellationtoken) : `Task<TSnapshot>` `abstract` -- Captures the output at the supplied directory.
