System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.SendHelloCallback C# (CSharp) Method

SendHelloCallback() private static method

private static SendHelloCallback ( IAsyncResult result ) : void
result IAsyncResult
return void
            private static void SendHelloCallback(IAsyncResult result)
            {
                if (!result.CompletedSynchronously)
                {
                    ConnectAndHandshakeAsyncResult thisPtr = (ConnectAndHandshakeAsyncResult)result.AsyncState;
                    try
                    {
                        HelloCommand.EndSend(result);
                        thisPtr.Authenticate();
                    }
                    catch (Exception e)
                    {
                        thisPtr.InvokeCallback(e);
                    }
                }
            }