C# Класс WebApplications.Utilities.Service.NamedPipeServer.ConnectedCommand

Holds a single executing command.
Наследование: System.IO.TextWriter, IColoredTextWriter
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
ConnectionGuid System.Guid
ID System.Guid

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

Метод Описание
Cancel ( [ request ) : void

Cancels the specified request.

ConnectedCommand ( System.Guid connectionGuid, [ service, [ connection, [ request, CancellationToken token = default(CancellationToken) ) : System

Initializes a new instance of the ConnectedCommand class.

Flush ( ) : void

Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.

ResetBackgroundColor ( ) : void

Sets the background color of the writer.

ResetColors ( ) : void

Resets the foreground and background colors of the writer.

ResetForegroundColor ( ) : void

Resets the foreground color of the writer.

SetBackgroundColor ( Color color ) : void

Sets the background color of the writer.

SetForegroundColor ( Color color ) : void

Sets the foreground color of the writer.

ToString ( ) : string

Returns a System.String that represents this instance.

Write ( [ buffer ) : void

Writes a character array to the text string or stream.

Write ( char value ) : void

Writes a character to the text string or stream.

WriteLine ( ) : void

Writes the line.

WriteLine ( [ buffer ) : void

Writes an array of characters followed by a line terminator to the text string or stream.

WriteLine ( char value ) : void

Writes the line.

WriteLine ( string value ) : void

Writes a string followed by a line terminator to the text string or stream.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the T:System.IO.TextWriter and optionally releases the managed resources.

Приватные методы

Метод Описание
Flush ( int sequence, CancellationToken token = default(CancellationToken) ) : Task

Описание методов

Cancel() публичный Метод

Cancels the specified request.
public Cancel ( [ request ) : void
request [ The request.
Результат void

ConnectedCommand() публичный Метод

Initializes a new instance of the ConnectedCommand class.
public ConnectedCommand ( System.Guid connectionGuid, [ service, [ connection, [ request, CancellationToken token = default(CancellationToken) ) : System
connectionGuid System.Guid The connection unique identifier.
service [ The service.
connection [ The connection.
request [ The request.
token System.Threading.CancellationToken The cancellation token.
Результат System

Dispose() защищенный Метод

Releases the unmanaged resources used by the T:System.IO.TextWriter and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Результат void

Flush() публичный Метод

Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.
public Flush ( ) : void
Результат void

ResetBackgroundColor() публичный Метод

Sets the background color of the writer.
public ResetBackgroundColor ( ) : void
Результат void

ResetColors() публичный Метод

Resets the foreground and background colors of the writer.
public ResetColors ( ) : void
Результат void

ResetForegroundColor() публичный Метод

Resets the foreground color of the writer.
public ResetForegroundColor ( ) : void
Результат void

SetBackgroundColor() публичный Метод

Sets the background color of the writer.
public SetBackgroundColor ( Color color ) : void
color Color The color.
Результат void

SetForegroundColor() публичный Метод

Sets the foreground color of the writer.
public SetForegroundColor ( Color color ) : void
color Color The color.
Результат void

ToString() публичный Метод

Returns a System.String that represents this instance.
public ToString ( ) : string
Результат string

Write() публичный Метод

Writes a character array to the text string or stream.
public Write ( [ buffer ) : void
buffer [ The character array to write to the text stream.
Результат void

Write() публичный Метод

Writes a character to the text string or stream.
public Write ( char value ) : void
value char The character to write to the text stream.
Результат void

WriteLine() публичный Метод

Writes the line.
public WriteLine ( ) : void
Результат void

WriteLine() публичный Метод

Writes an array of characters followed by a line terminator to the text string or stream.
public WriteLine ( [ buffer ) : void
buffer [ The character array from which data is read.
Результат void

WriteLine() публичный Метод

Writes the line.
public WriteLine ( char value ) : void
value char The value.
Результат void

WriteLine() публичный Метод

Writes a string followed by a line terminator to the text string or stream.
public WriteLine ( string value ) : void
value string The string to write. If is null, only the line terminator is written.
Результат void

Описание свойств

ConnectionGuid публичное свойство

The connection unique identifier.
public Guid,System ConnectionGuid
Результат System.Guid

ID публичное свойство

The request identifier.
public Guid,System ID
Результат System.Guid