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

◆ InitializeConnection()

void System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.InitializeConnection ( )
inlineprivate

Definition at line 89 of file SmtpConnection.cs.

90 {
92 if (!asyncResult.CompletedSynchronously)
93 {
94 return;
95 }
96 try
97 {
99 if (System.Net.NetEventSource.Log.IsEnabled())
100 {
101 System.Net.NetEventSource.Info(this, "Connect returned", "InitializeConnection");
102 }
103 Handshake();
104 }
105 catch (Exception result)
106 {
107 InvokeCallback(result);
108 }
109 }
IAsyncResult BeginInitializeConnection(string host, int port, AsyncCallback callback, object state)
void EndInitializeConnection(IAsyncResult result)
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)

References System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult._connection, System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult._host, System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult._port, System.asyncResult, System.Net.Mail.SmtpConnection.BeginInitializeConnection(), System.Net.Mail.SmtpConnection.EndInitializeConnection(), System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.Handshake(), System.Net.NetEventSource.Info(), System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.InitializeConnectionCallback(), System.Net.LazyAsyncResult.InvokeCallback(), and System.Net.NetEventSource.Log.

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