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;
            }
        }