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

◆ DownloadDataAsync() [2/2]

void System.Net.WebClient.DownloadDataAsync ( Uri address,
object? userToken )
inline

Definition at line 1576 of file WebClient.cs.

1577 {
1578 ArgumentNullException.ThrowIfNull(address, "address");
1579 AsyncOperation asyncOperation = StartAsyncOperation(userToken);
1580 try
1581 {
1583 }
1584 catch (Exception ex) when (!(ex is OutOfMemoryException))
1585 {
1586 DownloadDataAsyncCallback(null, GetExceptionToPropagate(ex), asyncOperation);
1587 }
1588 }
Uri GetUri(string address)
Definition WebClient.cs:990
async void DownloadBitsAsync(WebRequest request, Stream writeStream, AsyncOperation asyncOp, Action< byte[], Exception, AsyncOperation > completionDelegate)
virtual WebRequest GetWebRequest(Uri address)
Definition WebClient.cs:428
WebRequest _webRequest
Definition WebClient.cs:76
static Exception GetExceptionToPropagate(Exception e)
AsyncOperation StartAsyncOperation(object userToken)
Definition WebClient.cs:366
void DownloadDataAsyncCallback(byte[] returnBytes, Exception exception, object state)

References System.Net.WebClient._webRequest, System.Net.WebClient.DownloadBitsAsync(), System.Net.WebClient.DownloadDataAsyncCallback(), System.Net.WebClient.GetExceptionToPropagate(), System.Net.WebClient.GetUri(), System.Net.WebClient.GetWebRequest(), System.Net.WebClient.StartAsyncOperation(), and System.ArgumentNullException.ThrowIfNull().