Like the subject of this post, anybody can suggest me the best way to handle an event fired with an async method in c#?
Example
// Before:
MyPosClass.EventBluetoothCommunicationCompleted+= (sender, ErrorCode) =>
{
// implementation on event fired
};
// After:
var result = await MyPosClass.WaitBluetoothCommunicationCompleted();
I noticed this answer Await async with event handler Can it be a solution?
Thank you! Lewix