Interface IRebuildableProjection
- Namespace
- Stratara.Projections.Abstractions
- Assembly
- Stratara.Projections.dll
A projection that can be rebuilt on its own because it knows how to empty what it wrote. A full replay empties every read model at once; a projection that implements this interface can instead be rebuilt alone while every other projection keeps applying.
public interface IRebuildableProjection : IProjection
- Extension Methods
Methods
TruncateAsync(CancellationToken)
Empties this projection's read model, and nothing else.
Task TruncateAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenPropagated to the store.
Returns
- Task
A task that completes when the read model is empty.