with_events method

On this page

with_events

Register conversion lifecycle event handlers on a ConversionEvents bag that lives for the converter’s lifetime and fires on every conversion run.

May be called before or after IConversionSettings.with_settings.
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.

def with_events(self, configure):
    ...
Parameter Type Description
configure Action[ConversionEvents] Action that mutates the events bag.

Returns: This stage so that further entry-stage calls or Load may be chained.

See Also

On this page