WithEvents

IConversionSettings.WithEvents method

Register conversion lifecycle event handlers on a ConversionEvents bag that lives for the converter’s lifetime and fires on every conversion run. Sits at the same entry stage as WithSettings. Multiple calls accumulate: the same internal bag is passed to each configure action, so handlers set in earlier calls survive unless overwritten by a later one.

public IConversionFrom WithEvents(Action<ConversionEvents> configure)
Parameter Type Description
configure Action`1 Action that mutates the events bag.

Return Value

The source-selection stage so that Load may be chained.

See Also