When using the LockdownClient.PairAsync a TaskUnobservedException will be raised a lot.
This comes from the function ReceiveWithTimeout in the ServiceConnection class which is mainly a hacky function I put together to deal with the fact that NetworkStream.ReadAsync by design doesn't actually timeout.
I think I should keep the function working the same but redo how the timeout part works so that we don't have this problem any more.
When using the LockdownClient.PairAsync a TaskUnobservedException will be raised a lot.
This comes from the function ReceiveWithTimeout in the ServiceConnection class which is mainly a hacky function I put together to deal with the fact that NetworkStream.ReadAsync by design doesn't actually timeout.
I think I should keep the function working the same but redo how the timeout part works so that we don't have this problem any more.