internal void EndRunDTPStream(IAsyncResult ar) { try { AsyncBase.VerifyAsyncResult(ar, typeof(RunDTPStateObjectStream)); HandleAsyncEnd(ar, true); } finally { Dispose(); } }
override internal void EndPreapre(IAsyncResult ar) { try { AsyncBase.VerifyAsyncResult(ar, typeof(Prepare_SO)); HandleAsyncEnd(ar, false); } catch { CheckDisposed(); throw; } }
internal FtpResponse EndReadResponse(IAsyncResult ar) { try { AsyncBase.VerifyAsyncResult(ar, typeof(CCReadStateObject)); HandleAsyncEnd(ar, true); } catch (SocketException e) { CheckTimeoutException(e); throw; } return(_response); }
internal FtpResponse EndReadResponse(IAsyncResult ar) { try { AsyncBase.VerifyAsyncResult(ar, typeof(ReaderStateObject)); HandleAsyncEnd(ar, true); } finally { _response.NewLineEvent -= new FtpResponse.NewLineEventHandler(this.OnNewLine); _linesBuilder.NewLineEvent -= new BytesRoad.Net.Ftp.Advanced.LinesBuilder.NewLineEventHandler(LinesBuilder_NewLineEvent); } return(_response); }
internal FtpResponse EndSendCommandEx(IAsyncResult ar) { AsyncBase.VerifyAsyncResult(ar, typeof(CCSendStateObject)); HandleAsyncEnd(ar, true); return(_response); }
internal void EndSendCommand(IAsyncResult ar) { AsyncBase.VerifyAsyncResult(ar, typeof(CCSendStateObject)); HandleAsyncEnd(ar, true); }
internal FtpResponse EndConnect(IAsyncResult ar) { AsyncBase.VerifyAsyncResult(ar, typeof(Connect_SO), "EndConnect"); HandleAsyncEnd(ar, true); return(_response); }
void EndRunUploadingStream(IAsyncResult ar) { AsyncBase.VerifyAsyncResult(ar, typeof(TransStateObjectStream)); HandleAsyncEnd(ar, false); }