Interface ICdcBackgroundProcessor
- Namespace
- Excalibur.Cdc.Processing
- Assembly
- Excalibur.Cdc.dll
Defines the contract for a CDC background processor that can be invoked by the hosted service.
public interface ICdcBackgroundProcessor
Remarks
This interface is provider-agnostic and lives in Excalibur.Cdc so the hosted service
does not depend on any specific provider package (SQL Server, Postgres, etc.).
Provider-specific extensions register an implementation of this interface in DI. The Excalibur.Cdc.Processing.CdcProcessingHostedService resolves it to drive the polling loop.
Methods
ProcessChangesAsync(CancellationToken)
Processes a single batch of CDC changes.
Task<int> ProcessChangesAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenA token to observe while processing.
Returns
Exceptions
- OperationCanceledException
Thrown if the operation is canceled via the
cancellationToken.