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

◆ DownloadStringAsyncCallback()

void System.Net.WebClient.DownloadStringAsyncCallback ( byte[] returnBytes,
Exception exception,
object state )
inlineprivate

Definition at line 1526 of file WebClient.cs.

1527 {
1528 AsyncOperation asyncOperation = (AsyncOperation)state;
1529 string result = null;
1530 try
1531 {
1532 if (returnBytes != null)
1533 {
1534 result = GetStringUsingEncoding(_webRequest, returnBytes);
1535 }
1536 }
1537 catch (Exception ex) when (!(ex is OutOfMemoryException))
1538 {
1540 }
1541 DownloadStringCompletedEventArgs eventArgs = new DownloadStringCompletedEventArgs(result, exception, _canceled, asyncOperation.UserSuppliedState);
1543 }
WebRequest _webRequest
Definition WebClient.cs:76
static Exception GetExceptionToPropagate(Exception e)
string GetStringUsingEncoding(WebRequest request, byte[] data)
SendOrPostCallback _downloadStringOperationCompleted
Definition WebClient.cs:104
void InvokeOperationCompleted(AsyncOperation asyncOp, SendOrPostCallback callback, AsyncCompletedEventArgs eventArgs)

References System.Net.WebClient._canceled, System.Net.WebClient._downloadStringOperationCompleted, System.Net.WebClient._webRequest, System.exception, System.Net.WebClient.GetExceptionToPropagate(), System.Net.WebClient.GetStringUsingEncoding(), System.Net.WebClient.InvokeOperationCompleted(), System.state, and System.ComponentModel.AsyncOperation.UserSuppliedState.

Referenced by System.Net.WebClient.DownloadStringAsync().