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

◆ OnReadLines()

static void System.Net.Mail.ReadLinesCommand.OnReadLines ( IAsyncResult result)
inlinestaticprivate

Definition at line 48 of file ReadLinesCommand.cs.

49 {
50 if (result.CompletedSynchronously)
51 {
52 return;
53 }
54 MultiAsyncResult multiAsyncResult = (MultiAsyncResult)result.AsyncState;
55 try
56 {
57 SmtpConnection smtpConnection = (SmtpConnection)multiAsyncResult.Context;
58 LineInfo[] result2 = smtpConnection.Reader.CurrentReader.EndReadLines(result);
59 if (!(multiAsyncResult.Result is Exception))
60 {
61 multiAsyncResult.Result = result2;
62 }
63 multiAsyncResult.Leave();
64 }
65 catch (Exception result3)
66 {
67 multiAsyncResult.Leave(result3);
68 }
69 }

References System.IAsyncResult.AsyncState, System.IAsyncResult.CompletedSynchronously, System.Net.Mime.MultiAsyncResult.Context, System.Net.Mail.SmtpReplyReaderFactory.CurrentReader, System.Net.Mail.SmtpReplyReader.EndReadLines(), System.Net.Mime.MultiAsyncResult.Leave(), System.Net.Mail.SmtpConnection.Reader, and System.Net.LazyAsyncResult.Result.