I receive some controller from 3rd party API, then i register some event that controller exposes, the event callback handler is with signature:
public delegate void SomeCallbackFromAPI(Guid threadId, int someInt)
This is not good enough for me, I would like to receive the sender as well because i need to identify this controller from a list of controllers i hold, and the callback does not provide any other valid ID that i can recognize the controller with.
I DO know when this invokes, and if I can the sender I can cast it to my controller type.
Is there a way to get the sender of callback ?
Thanks