onEvent abstract method
A method called when events this listener is subscrubed to are fired.
event
a fired evemtcorrelationId
(optional) transaction id to trace execution through call chain.args
event arguments.
Implementation
void onEvent(String? correlationId, IEvent event, Parameters args);