Custom HistoryEventHandlers: How to sync event IDs?

When using custom history event handlers / Composite Event Handlers, the ID of the event is not provided. If events are being sent to the DB and to the custom handler, how does the custom handler receive the same ID as the DB handler?

@Niall

@thorben any thoughts on this?

Thanks!