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

◆ TlsStreamAuthenticateCallback()

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

Definition at line 341 of file SmtpConnection.cs.

342 {
343 if (!result.CompletedSynchronously)
344 {
345 ConnectAndHandshakeAsyncResult connectAndHandshakeAsyncResult = (ConnectAndHandshakeAsyncResult)result.AsyncState;
346 try
347 {
348 (connectAndHandshakeAsyncResult._connection._networkStream as System.Net.TlsStream).EndAuthenticateAsClient(result);
349 connectAndHandshakeAsyncResult._connection._responseReader = new SmtpReplyReaderFactory(connectAndHandshakeAsyncResult._connection._networkStream);
350 connectAndHandshakeAsyncResult.SendEHello();
351 }
352 catch (Exception result2)
353 {
354 connectAndHandshakeAsyncResult.InvokeCallback(result2);
355 }
356 }
357 }
ConnectAndHandshakeAsyncResult(SmtpConnection connection, string host, int port, System.Net.ContextAwareResult outerResult, AsyncCallback callback, object state)

References System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.ConnectAndHandshakeAsyncResult(), System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult._connection, System.Net.Mail.SmtpConnection._networkStream, System.IAsyncResult.AsyncState, System.IAsyncResult.CompletedSynchronously, System.Net.LazyAsyncResult.InvokeCallback(), and System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.SendEHello().

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