System.Net.Mail.SmtpTransport.ReleaseConnection C# (CSharp) Method

ReleaseConnection() private method

private ReleaseConnection ( ) : void
return void
        internal void ReleaseConnection()
        {
            if (_connection != null)
            {
                _connection.ReleaseConnection();
            }
        }

Usage Example

Example #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing && !_disposed)
     {
         if (InCall && !_cancelled)
         {
             _cancelled = true;
             Abort();
         }
         else
         {
             _transport?.ReleaseConnection();
         }
         _timer?.Dispose();
         _disposed = true;
     }
 }
All Usage Examples Of System.Net.Mail.SmtpTransport::ReleaseConnection