Delegate CdcFatalErrorHandler<TEvent>
Handles a fatal error that occurs during CDC processing for a provider whose change events are of
type TEvent.
public delegate Task CdcFatalErrorHandler<TEvent>(Exception exception, TEvent? failedEvent) where TEvent : class
Parameters
exceptionExceptionThe exception that occurred during processing.
failedEventTEventThe change event that failed to process, or null when the fatal error occurred at the connection / poll-loop level and no single change event is implicated.
Returns
- Task
A task representing the asynchronous operation.
Type Parameters
TEventThe provider-specific change-event type.
Remarks
When no handler is configured (OnFatalError is null), a fatal error is rethrown and processing stops — fail-loud, never a silent infinite retry.