示例#1
0
 internal void EndRunDTPStream(IAsyncResult ar)
 {
     try
     {
         AsyncBase.VerifyAsyncResult(ar, typeof(RunDTPStateObjectStream));
         HandleAsyncEnd(ar, true);
     }
     finally
     {
         Dispose();
     }
 }
示例#2
0
 override internal void EndPreapre(IAsyncResult ar)
 {
     try
     {
         AsyncBase.VerifyAsyncResult(ar, typeof(Prepare_SO));
         HandleAsyncEnd(ar, false);
     }
     catch
     {
         CheckDisposed();
         throw;
     }
 }
示例#3
0
 internal FtpResponse EndReadResponse(IAsyncResult ar)
 {
     try
     {
         AsyncBase.VerifyAsyncResult(ar, typeof(CCReadStateObject));
         HandleAsyncEnd(ar, true);
     }
     catch (SocketException e)
     {
         CheckTimeoutException(e);
         throw;
     }
     return(_response);
 }
示例#4
0
 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);
 }
示例#5
0
 internal FtpResponse EndSendCommandEx(IAsyncResult ar)
 {
     AsyncBase.VerifyAsyncResult(ar, typeof(CCSendStateObject));
     HandleAsyncEnd(ar, true);
     return(_response);
 }
示例#6
0
 internal void EndSendCommand(IAsyncResult ar)
 {
     AsyncBase.VerifyAsyncResult(ar, typeof(CCSendStateObject));
     HandleAsyncEnd(ar, true);
 }
示例#7
0
 internal FtpResponse EndConnect(IAsyncResult ar)
 {
     AsyncBase.VerifyAsyncResult(ar, typeof(Connect_SO), "EndConnect");
     HandleAsyncEnd(ar, true);
     return(_response);
 }
示例#8
0
 void EndRunUploadingStream(IAsyncResult ar)
 {
     AsyncBase.VerifyAsyncResult(ar, typeof(TransStateObjectStream));
     HandleAsyncEnd(ar, false);
 }