Method OnProcessingFailedAsync(GenericFileInfo, string, CancellationToken)
Called when processing fails (exchange.Exception is set and not handled). Override in a connector to move the
file to a failure directory; the file keys of that option read file at
workPath.
protected override Task OnProcessingFailedAsync(GenericFileInfo file, string workPath, CancellationToken ct)
Remarks
Moves a failed file to when configured, so a poison
file is quarantined out of the poll directory instead of being re-picked on every poll. No-op when
unset (the file is left in place). Best-effort: a move failure is logged, not thrown.