C# Класс SmtpServer.TextStreamExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

FlushAsync() публичный статический Метод

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.
Результат Task

ReadLineAsync() публичный статический Метод

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.
Результат Task

ReadLineAsync() публичный статический Метод

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.
Результат Task

ReplyAsync() публичный статический Метод

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.
Результат Task

WriteLineAsync() публичный статический Метод

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.
Результат Task