WithEvents

IConversionFrom.WithEvents method

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 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

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

See Also