Delegate CdcPositionResetHandler
Represents a handler for CDC position reset events.
public delegate Task CdcPositionResetHandler(CdcPositionResetEventArgs args, CancellationToken cancellationToken)
Parameters
argsCdcPositionResetEventArgsThe event arguments containing reset details.
cancellationTokenCancellationTokenA token to cancel the operation.
Returns
- Task
A task representing the asynchronous operation.
Remarks
This delegate is invoked when a stale position is detected and recovery is being attempted. The handler can be used for:
- Logging and alerting
- Custom recovery logic (when using InvokeCallback)
- Metrics and monitoring