I'm trying to get a ININ.Icelib.Interactions.Interaction
out of a ININ.InteractionClient.AddIn.Interaction
instance received from InteractionAdded callback.
I managed to do it with reflection, but I'd be much happier if there is some proper way to do this.
I tried to create a new Interaction instance using InteractionsManager and passing in the interaction id, but the Interaction Desktop crashes from unhandled exception (un-catchable).
This is my code:
protected override void InteractionAdded(IInteraction interaction)
Interaction ilInteraction = interactionsManager.CreateInteraction(new InteractionId(interaction.InteractionId));
It crashes right after returning from that function.
Has anyone encountered this kind of behaviour or does anybody know how to get the exception that occurs inside ID? (try-catch block doesn't do the trick)