C# 클래스 SmtpServer.TextStreamExtensions

파일 보기 프로젝트 열기: cosullivan/SmtpServer

공개 메소드들

메소드 설명
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