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

◆ EndSend()

void System.Net.Mime.MimeBasePart.EndSend ( IAsyncResult asyncResult)
inlinepackageinherited

Definition at line 223 of file MimeBasePart.cs.

224 {
225 if (asyncResult == null)
226 {
227 throw new ArgumentNullException("asyncResult");
228 }
229 System.Net.LazyAsyncResult lazyAsyncResult = asyncResult as MimePartAsyncResult;
230 if (lazyAsyncResult == null || lazyAsyncResult.AsyncObject != this)
231 {
232 throw new ArgumentException(System.SR.net_io_invalidasyncresult, "asyncResult");
233 }
234 if (lazyAsyncResult.EndCalled)
235 {
237 }
238 lazyAsyncResult.InternalWaitForCompletion();
239 lazyAsyncResult.EndCalled = true;
240 if (lazyAsyncResult.Result is Exception)
241 {
242 throw (Exception)lazyAsyncResult.Result;
243 }
244 }
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

References System.Net.LazyAsyncResult.AsyncObject, System.asyncResult, System.Net.LazyAsyncResult.EndCalled, System.SR.Format(), System.Net.LazyAsyncResult.InternalWaitForCompletion(), System.SR.net_io_invalidasyncresult, System.SR.net_io_invalidendcall, and System.Net.LazyAsyncResult.Result.

Referenced by System.Net.Mime.MimeMultiPart.MimePartSentCallbackHandler().