C# Класс SmtpServer.NetworkTextStream

Наследование: ITextStream, IDisposable
Показать файл Открыть проект

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

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