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

◆ SendStartTlsCallback()

static void System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.SendStartTlsCallback ( IAsyncResult result)
inlinestaticprivate

Definition at line 310 of file SmtpConnection.cs.

311 {
312 if (!result.CompletedSynchronously)
313 {
314 ConnectAndHandshakeAsyncResult connectAndHandshakeAsyncResult = (ConnectAndHandshakeAsyncResult)result.AsyncState;
315 try
316 {
317 StartTlsCommand.EndSend(result);
318 connectAndHandshakeAsyncResult.TlsStreamAuthenticate();
319 }
320 catch (Exception result2)
321 {
322 connectAndHandshakeAsyncResult.InvokeCallback(result2);
323 }
324 }
325 }
ConnectAndHandshakeAsyncResult(SmtpConnection connection, string host, int port, System.Net.ContextAwareResult outerResult, AsyncCallback callback, object state)

References System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.ConnectAndHandshakeAsyncResult(), System.IAsyncResult.AsyncState, System.IAsyncResult.CompletedSynchronously, System.Net.Mail.StartTlsCommand.EndSend(), System.Net.LazyAsyncResult.InvokeCallback(), and System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.TlsStreamAuthenticate().

Referenced by System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.SendStartTls().