# IPipelineOutputComparer<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/IPipelineOutputComparer.cs)

Compares pipeline output snapshots and reports differences as [PipelineOutputChange](/reference/api/csharp/aspire.hosting/pipelineoutputchange.md) values.

## Definition

```csharp
namespace Aspire.Hosting.Pipelines;

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

## Type Parameters

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

## Remarks

Implementations should rely on the supplied snapshots rather than mutable live output.

## Methods

- [CompareAsync(TSnapshot, TSnapshot, CancellationToken)](/reference/api/csharp/aspire.hosting/ipipelineoutputcomparer-1/methods.md#compareasync-tsnapshot-tsnapshot-cancellationtoken) : [Task<IReadOnlyList<PipelineOutputChange>>](/reference/api/csharp/aspire.hosting/pipelineoutputchange.md) `abstract` -- Compares output captured before and after artifact generation.
