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

◆ OnWrite()

static void System.Net.Mime.QEncodedStream.WriteAsyncResult.OnWrite ( IAsyncResult result)
inlinestaticprivate

Definition at line 51 of file QEncodedStream.cs.

52 {
53 if (!result.CompletedSynchronously)
54 {
55 WriteAsyncResult writeAsyncResult = (WriteAsyncResult)result.AsyncState;
56 try
57 {
58 writeAsyncResult.CompleteWrite(result);
59 writeAsyncResult.Write();
60 }
61 catch (Exception result2)
62 {
63 writeAsyncResult.InvokeCallback(result2);
64 }
65 }
66 }
WriteAsyncResult(QEncodedStream parent, byte[] buffer, int offset, int count, AsyncCallback callback, object state)

References System.Net.Mime.QEncodedStream.WriteAsyncResult.WriteAsyncResult(), System.IAsyncResult.AsyncState, System.IAsyncResult.CompletedSynchronously, System.Net.Mime.QEncodedStream.WriteAsyncResult.CompleteWrite(), System.Net.LazyAsyncResult.InvokeCallback(), and System.Net.Mime.QEncodedStream.WriteAsyncResult.Write().