Hello,
In the registered EventHandler:
public delegate void EventHandler(object sender, TEventArgs e);
The ‘sender’ is the object that you registered the EventHandler with. So if you pass the EventHandler to ISession.createFlow() then when it is invoked later for a received message, the ‘sender’ is the IFlow.
I can’t find this explicitly stated anywhere in the online reference. I will make a note to the developer and docs team that some improvements could be made here.
Ragnar