IConversionHandlersStage

IConversionHandlersStage interface

Flattened conversion handlers stage. Allows setting OnConversionCompleted or OnConversionFailed in any order and any number of times, before proceeding to Convert / Compress. Events should be registered at the early stage via WithEvents instead of in this stage.

public interface IConversionHandlersStage : IConversionConvertOrCompress

Methods

Name Description
OnConversionCompleted(Action<ConvertedContext>) Registers a callback to be invoked when a document conversion completes successfully. Re-invoking replaces any previously set handler.
OnConversionFailed(Action<ConvertedContext, Exception>) Registers a callback to be invoked when a document conversion fails. Re-invoking replaces any previously set handler. It reports the final outcome only: a document that loads after the load options provider was asked again is not reported.

See Also