System.Net.Mail.SmtpConnection.Flush C# (CSharp) Method

Flush() private method

private Flush ( ) : void
return void
        internal void Flush()
        {
            _networkStream.Write(_bufferBuilder.GetBuffer(), 0, _bufferBuilder.Length);
            _bufferBuilder.Reset();
        }

Usage Example

Example #1
0
        internal static void Send(SmtpConnection conn)
        {
            PrepareCommand(conn);

            // We simply flush and don't read the response
            // to avoid blocking call that will impact users
            // that are using async api, since this code
            // will run on Dispose()
            conn.Flush();
        }
All Usage Examples Of System.Net.Mail.SmtpConnection::Flush