[System] Set exception on Finish*Failure in SocketAsyncEventArgs (#6462)
commitad5703adfd84c309292d4c33a2fcaa5e60de9100
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 9 Jan 2018 14:45:47 +0000 (9 15:45 +0100)
committerGitHub <noreply@github.com>
Tue, 9 Jan 2018 14:45:47 +0000 (9 15:45 +0100)
treefd83dfc2d8d01f5851d2dc27202e9cc052af937a
parente6a167a7cd15ecd424e76e8d39856cf355066fb7
[System] Set exception on Finish*Failure in SocketAsyncEventArgs (#6462)

Follow up to https://github.com/mono/mono/pull/6431, we should
capture the exception that is passed to the methods.

Copied the SetResult() method that referencesource uses.
mcs/class/System/System.Net.Sockets/SocketAsyncEventArgs.cs