AaltoTLS.SecureSession.EndSend C# (CSharp) 메소드

EndSend() 공개 메소드

public EndSend ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
리턴 void
        public void EndSend(IAsyncResult asyncResult)
        {
            AsyncSendDataResult asyncSendResult = (AsyncSendDataResult)asyncResult;
            if (!asyncSendResult.IsCompleted) {
                asyncSendResult.AsyncWaitHandle.WaitOne();
            }

            if (asyncSendResult.CompletedWithException) {
                throw asyncSendResult.AsyncException;
            }
        }