Flush() private method

private Flush ( ) : void
return void
Exemplo n.º 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();
        }
Exemplo n.º 2
0
        internal static SmtpStatusCode Send(SmtpConnection conn, out string response)
        {
            conn.Flush();
            SmtpReplyReader reader = conn.Reader.GetNextReplyReader();
            LineInfo        info   = reader.ReadLine();

            response = info.Line;
            reader.Close();
            return(info.StatusCode);
        }
Exemplo n.º 3
0
 internal static LineInfo[] Send(SmtpConnection conn)
 {
     conn.Flush();
     return(conn.Reader.GetNextReplyReader().ReadLines());
 }
Exemplo n.º 4
0
 internal static SmtpStatusCode Send(SmtpConnection conn, out string response)
 {
     conn.Flush();
     SmtpReplyReader reader = conn.Reader.GetNextReplyReader();
     LineInfo info = reader.ReadLine();
     response = info.Line;
     reader.Close();
     return info.StatusCode;
 }
Exemplo n.º 5
0
 internal static LineInfo[] Send(SmtpConnection conn)
 {
     conn.Flush();
     return conn.Reader.GetNextReplyReader().ReadLines();
 }