Beispiel #1
0
            internal static void End(IAsyncResult result)
            {
                ConnectAndHandshakeAsyncResult thisPtr = (ConnectAndHandshakeAsyncResult)result;
                object connectResult = thisPtr.InternalWaitForCompletion();

                if (connectResult is Exception e)
                {
                    ExceptionDispatchInfo.Throw(e);
                }
            }
Beispiel #2
0
            internal static void End(IAsyncResult result)
            {
                ConnectAndHandshakeAsyncResult thisPtr = (ConnectAndHandshakeAsyncResult)result;
                object connectResult = thisPtr.InternalWaitForCompletion();

                if (connectResult is Exception)
                {
                    throw (Exception)connectResult;
                }
            }