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

◆ OnWrite()

static void System.Net.Mime.BaseWriter.OnWrite ( IAsyncResult result)
inlinestaticprotectedinherited

Definition at line 159 of file BaseWriter.cs.

160 {
161 if (!result.CompletedSynchronously)
162 {
163 MultiAsyncResult multiAsyncResult = (MultiAsyncResult)result.AsyncState;
164 BaseWriter baseWriter = (BaseWriter)multiAsyncResult.Context;
165 try
166 {
167 baseWriter._stream.EndWrite(result);
168 multiAsyncResult.Leave();
169 }
170 catch (Exception result2)
171 {
172 multiAsyncResult.Leave(result2);
173 }
174 }
175 }
BaseWriter(Stream stream, bool shouldEncodeLeadingDots)
Definition BaseWriter.cs:28

References System.Net.Mime.BaseWriter.BaseWriter(), System.Net.Mime.BaseWriter._stream, System.IAsyncResult.AsyncState, System.IAsyncResult.CompletedSynchronously, System.Net.Mime.MultiAsyncResult.Context, System.IO.Stream.EndWrite(), and System.Net.Mime.MultiAsyncResult.Leave().