C# 클래스 SmtpServer.NetworkTextStream

상속: ITextStream, IDisposable
파일 보기 프로젝트 열기: cosullivan/SmtpServer

공개 메소드들

메소드 설명
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

FlushAsync ( ) : System.Threading.Tasks.Task

Flush the write buffers to the stream.

GetInnerStream ( ) : Stream

Returns the inner stream.

NetworkTextStream ( Stream stream ) : System

Constructor.

NetworkTextStream ( TcpClient client ) : System

Constructor.

ReadLineAsync ( ) : Task

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

WriteLineAsync ( string text ) : System.Threading.Tasks.Task

Writes a line of characters asynchronously to the current stream.

메소드 상세

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

FlushAsync() 공개 메소드

Flush the write buffers to the stream.
public FlushAsync ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

GetInnerStream() 공개 메소드

Returns the inner stream.
public GetInnerStream ( ) : Stream
리턴 Stream

NetworkTextStream() 공개 메소드

Constructor.
public NetworkTextStream ( Stream stream ) : System
stream Stream The stream for reading and writing.
리턴 System

NetworkTextStream() 공개 메소드

Constructor.
public NetworkTextStream ( TcpClient client ) : System
client System.Net.Sockets.TcpClient The client for reading and writing.
리턴 System

ReadLineAsync() 공개 메소드

Reads a line of characters asynchronously from the current stream and returns the data as a string.
public ReadLineAsync ( ) : Task
리턴 Task

WriteLineAsync() 공개 메소드

Writes a line of characters asynchronously to the current stream.
public WriteLineAsync ( string text ) : System.Threading.Tasks.Task
text string The text to write to the stream.
리턴 System.Threading.Tasks.Task