with_events method

On this page

with_events

Registers 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 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: The source-selection stage so that Load may be chained.

See Also

On this page