[Remoting] Modified task related codes in ScreenMirroring. 86/165186/1
authorcoderhyme <jhyo.kim@samsung.com>
Wed, 27 Dec 2017 03:10:46 +0000 (12:10 +0900)
committercoderhyme <jhyo.kim@samsung.com>
Wed, 27 Dec 2017 03:10:46 +0000 (12:10 +0900)
commitd724eb154a3e5a188873fa549dcd4eb0eb7cdc33
treee59def872dc16000451f2fbd46f378add5eedf76
parentcb397cb96316aa5fe0dfc14af9662eedda9c2528
[Remoting] Modified task related codes in ScreenMirroring.

1. Should avoid using TaskFactory.StartNew with a single argument due to the SynchronizationContext issue.
2. Must set exceptions to the TaskCompletionSource when the opeartion fails instead of throwing exceptions in the delegates of tasks. Otherwise, the wrapping tasks could be blocked forever.

Change-Id: Icb7bf1c82add0b62b2b57932a5cd327b178a1eca
Signed-off-by: coderhyme <jhyo.kim@samsung.com>
src/Tizen.Multimedia.Remoting/Interop/Interop.ScreenMirroring.cs
src/Tizen.Multimedia.Remoting/ScreenMirroring/ScreenMirroring.cs
src/Tizen.Multimedia.Remoting/ScreenMirroring/ScreenMirroringError.cs