Table of Contents

Delegate CdcPositionResetHandler

Namespace
Excalibur.Cdc
Assembly
Excalibur.Cdc.dll

Represents a handler for CDC position reset events.

public delegate Task CdcPositionResetHandler(CdcPositionResetEventArgs args, CancellationToken cancellationToken)

Parameters

args CdcPositionResetEventArgs

The event arguments containing reset details.

cancellationToken CancellationToken

A 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