C# Class SmtpServer.TextStreamExtensions

Datei anzeigen Open project: cosullivan/SmtpServer

Public Methods

Method Description
FlushAsync ( this stream, CancellationToken cancellationToken ) : Task

Flush the write buffers to the stream.

ReadLineAsync ( this stream, CancellationToken cancellationToken ) : Task

Reads a line of characters asynchronously from the current stream and returns the data as a string.

ReadLineAsync ( this stream, System.TimeSpan timeout, CancellationToken cancellationToken ) : Task

Reads a line of characters asynchronously from the current stream and returns the data as a string.

ReplyAsync ( this stream, SmtpResponse response, CancellationToken cancellationToken ) : Task

Reply to the client.

WriteLineAsync ( this stream, string text, CancellationToken cancellationToken ) : Task

Writes a line of characters asynchronously to the current stream.

Method Details

FlushAsync() public static method

Flush the write buffers to the stream.
public static FlushAsync ( this stream, CancellationToken cancellationToken ) : Task
stream this The stream to perform the operation on.
cancellationToken System.Threading.CancellationToken The cancellation token.
return Task

ReadLineAsync() public static method

Reads a line of characters asynchronously from the current stream and returns the data as a string.
public static ReadLineAsync ( this stream, CancellationToken cancellationToken ) : Task
stream this The stream to perform the operation on.
cancellationToken System.Threading.CancellationToken The cancellation token.
return Task

ReadLineAsync() public static method

Reads a line of characters asynchronously from the current stream and returns the data as a string.
public static ReadLineAsync ( this stream, System.TimeSpan timeout, CancellationToken cancellationToken ) : Task
stream this The stream to perform the operation on.
timeout System.TimeSpan The timeout to apply when reading from the stream.
cancellationToken System.Threading.CancellationToken The cancellation token.
return Task

ReplyAsync() public static method

Reply to the client.
public static ReplyAsync ( this stream, SmtpResponse response, CancellationToken cancellationToken ) : Task
stream this The text stream to perform the operation on.
response SmtpServer.Protocol.SmtpResponse The response.
cancellationToken System.Threading.CancellationToken The cancellation token.
return Task

WriteLineAsync() public static method

Writes a line of characters asynchronously to the current stream.
public static WriteLineAsync ( this stream, string text, CancellationToken cancellationToken ) : Task
stream this The stream to perform the operation on.
text string The text to write to the stream.
cancellationToken System.Threading.CancellationToken The cancellation token.
return Task