Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ EndGetResponse()

override WebResponse System.Net.FtpWebRequest.EndGetResponse ( IAsyncResult asyncResult)
inlinevirtual

Reimplemented from System.Net.WebRequest.

Definition at line 656 of file FtpWebRequest.cs.

657 {
658 try
659 {
660 if (asyncResult == null)
661 {
662 throw new ArgumentNullException("asyncResult");
663 }
664 if (!(asyncResult is LazyAsyncResult lazyAsyncResult))
665 {
666 throw new ArgumentException(System.SR.net_io_invalidasyncresult, "asyncResult");
667 }
668 if (lazyAsyncResult.EndCalled)
669 {
671 }
672 lazyAsyncResult.InternalWaitForCompletion();
673 lazyAsyncResult.EndCalled = true;
674 CheckError();
675 }
676 catch (Exception message)
677 {
678 if (System.Net.NetEventSource.Log.IsEnabled())
679 {
680 System.Net.NetEventSource.Error(this, message, "EndGetResponse");
681 }
682 throw;
683 }
684 return _ftpWebResponse;
685 }
FtpWebResponse _ftpWebResponse
static readonly System.Net.NetEventSource Log
static void Error(object thisOrContextObject, FormattableString formattableString, [CallerMemberName] string memberName=null)
static string net_io_invalidendcall
Definition SR.cs:22
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string net_io_invalidasyncresult
Definition SR.cs:20
Definition SR.cs:7

References System.Net.FtpWebRequest._ftpWebResponse, System.asyncResult, System.Net.FtpWebRequest.CheckError(), System.Net.NetEventSource.Error(), System.SR.Format(), System.Net.NetEventSource.Log, System.SR.net_io_invalidasyncresult, and System.SR.net_io_invalidendcall.