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

◆ InitializeConnectionCallback()

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

Definition at line 111 of file SmtpConnection.cs.

112 {
113 if (result.CompletedSynchronously)
114 {
115 return;
116 }
117 ConnectAndHandshakeAsyncResult connectAndHandshakeAsyncResult = (ConnectAndHandshakeAsyncResult)result.AsyncState;
118 try
119 {
120 connectAndHandshakeAsyncResult._connection.EndInitializeConnection(result);
121 if (System.Net.NetEventSource.Log.IsEnabled())
122 {
123 System.Net.NetEventSource.Info(null, $"Connect returned {connectAndHandshakeAsyncResult}", "InitializeConnectionCallback");
124 }
125 connectAndHandshakeAsyncResult.Handshake();
126 }
127 catch (Exception result2)
128 {
129 connectAndHandshakeAsyncResult.InvokeCallback(result2);
130 }
131 }
ConnectAndHandshakeAsyncResult(SmtpConnection connection, string host, int port, System.Net.ContextAwareResult outerResult, AsyncCallback callback, object state)
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)

References System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.ConnectAndHandshakeAsyncResult(), System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult._connection, System.IAsyncResult.AsyncState, System.IAsyncResult.CompletedSynchronously, System.Net.Mail.SmtpConnection.EndInitializeConnection(), System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.Handshake(), System.Net.NetEventSource.Info(), System.Net.LazyAsyncResult.InvokeCallback(), and System.Net.NetEventSource.Log.

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