EndGetConnection() private method

private EndGetConnection ( IAsyncResult result ) : void
result IAsyncResult
return void
 internal void EndGetConnection(IAsyncResult result)
 {
     GlobalLog.Enter("SmtpTransport#" + ValidationHelper.HashString(this) + "::EndGetConnection");
     try {
         connection.EndGetConnection(result);
     }
     finally {
         GlobalLog.Leave("SmtpTransport#" + ValidationHelper.HashString(this) + "::EndConnect");
     }
 }
Ejemplo n.º 2
0
 internal void EndGetConnection(IAsyncResult result)
 {
     if (NetEventSource.IsEnabled)
     {
         NetEventSource.Enter(this);
     }
     try
     {
         _connection.EndGetConnection(result);
     }
     finally
     {
         if (NetEventSource.IsEnabled)
         {
             NetEventSource.Exit(this);
         }
     }
 }
Ejemplo n.º 3
0
 internal void EndGetConnection(IAsyncResult result)
 {
     if (GlobalLog.IsEnabled)
     {
         GlobalLog.Enter("SmtpTransport#" + LoggingHash.HashString(this) + "::EndGetConnection");
     }
     try
     {
         _connection.EndGetConnection(result);
     }
     finally
     {
         if (GlobalLog.IsEnabled)
         {
             GlobalLog.Leave("SmtpTransport#" + LoggingHash.HashString(this) + "::EndConnect");
         }
     }
 }
Ejemplo n.º 4
0
 internal static void EndGetConnection(IAsyncResult result)
 {
     SmtpConnection.EndGetConnection(result);
 }