Shadowsocks.Util.Sockets.WrappedSocket.EndConnect C# (CSharp) Méthode

EndConnect() public méthode

public EndConnect ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
Résultat void
        public void EndConnect(IAsyncResult asyncResult)
        {
            if (_disposed)
            {
                throw new ObjectDisposedException(GetType().FullName);
            }

            var r = asyncResult as FakeAsyncResult;
            if (r == null)
            {
                throw new ArgumentException("Invalid asyncResult.", nameof(asyncResult));
            }

            if (r.InternalException != null)
            {
                throw r.InternalException;
            }
        }