C# Class SmtpServer.NetworkTextStream

Inheritance: ITextStream, IDisposable
ファイルを表示 Open project: cosullivan/SmtpServer

Public Methods

Method Description
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.

Method Details

Dispose() public method

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

FlushAsync() public method

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

GetInnerStream() public method

Returns the inner stream.
public GetInnerStream ( ) : Stream
return Stream

NetworkTextStream() public method

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

NetworkTextStream() public method

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

ReadLineAsync() public method

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

WriteLineAsync() public method

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.
return System.Threading.Tasks.Task