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

◆ EndGetResponse()

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

Reimplemented from System.Net.WebRequest.

Definition at line 1031 of file HttpWebRequest.cs.

1032 {
1033 CheckAbort();
1034 if (asyncResult == null || !(asyncResult is Task<WebResponse>))
1035 {
1036 throw new ArgumentException(System.SR.net_io_invalidasyncresult, "asyncResult");
1037 }
1039 {
1041 }
1042 try
1043 {
1044 return ((Task<WebResponse>)asyncResult).GetAwaiter().GetResult();
1045 }
1046 catch (Exception exception)
1047 {
1048 throw WebException.CreateCompatibleException(exception);
1049 }
1050 }
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
static int Exchange(ref int location1, int value)

References System.Net.HttpWebRequest._endGetResponseCalled, System.asyncResult, System.Net.HttpWebRequest.CheckAbort(), System.Net.WebException.CreateCompatibleException(), System.Runtime.Serialization.Dictionary, System.exception, System.Threading.Interlocked.Exchange(), System.SR.Format(), System.SR.net_io_invalidasyncresult, and System.SR.net_io_invalidendcall.