C# Class SmtpServer.NetworkTextStream

Inheritance: ITextStream, IDisposable
Afficher le fichier Open project: cosullivan/SmtpServer

Méthodes publiques

Méthode 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 méthode

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

FlushAsync() public méthode

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

GetInnerStream() public méthode

Returns the inner stream.
public GetInnerStream ( ) : Stream
Résultat Stream

NetworkTextStream() public méthode

Constructor.
public NetworkTextStream ( Stream stream ) : System
stream Stream The stream for reading and writing.
Résultat System

NetworkTextStream() public méthode

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

ReadLineAsync() public méthode

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

WriteLineAsync() public méthode

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.
Résultat System.Threading.Tasks.Task