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

◆ AuthenticateCallback()

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

Definition at line 406 of file SmtpConnection.cs.

407 {
408 if (result.CompletedSynchronously)
409 {
410 return;
411 }
412 ConnectAndHandshakeAsyncResult connectAndHandshakeAsyncResult = (ConnectAndHandshakeAsyncResult)result.AsyncState;
413 try
414 {
415 LineInfo lineInfo = AuthCommand.EndSend(result);
416 if (lineInfo.StatusCode == (SmtpStatusCode)334)
417 {
418 connectAndHandshakeAsyncResult._authResponse = lineInfo.Line;
419 if (!connectAndHandshakeAsyncResult.AuthenticateContinue())
420 {
421 return;
422 }
423 }
424 else if (lineInfo.StatusCode == (SmtpStatusCode)235)
425 {
426 connectAndHandshakeAsyncResult._connection._authenticationModules[connectAndHandshakeAsyncResult._currentModule].CloseContext(connectAndHandshakeAsyncResult._connection);
427 connectAndHandshakeAsyncResult._connection._isConnected = true;
428 connectAndHandshakeAsyncResult.InvokeCallback();
429 return;
430 }
431 connectAndHandshakeAsyncResult.Authenticate();
432 }
433 catch (Exception result2)
434 {
435 connectAndHandshakeAsyncResult.InvokeCallback(result2);
436 }
437 }
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._authenticationModules, System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult._connection, System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult._currentModule, System.IAsyncResult.AsyncState, System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.Authenticate(), System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.AuthenticateContinue(), System.Net.Mail.ISmtpAuthenticationModule.CloseContext(), System.IAsyncResult.CompletedSynchronously, System.Net.Mail.AuthCommand.EndSend(), System.Net.LazyAsyncResult.InvokeCallback(), System.Net.Mail.LineInfo.Line, and System.Net.Mail.LineInfo.StatusCode.