C# Class WebApplications.Utilities.Service.NamedPipeServer.ConnectedCommand

Holds a single executing command.
Inheritance: System.IO.TextWriter, IColoredTextWriter
ファイルを表示 Open project: webappsuk/CoreLibraries

Public Properties

Property Type Description
ConnectionGuid System.Guid
ID System.Guid

Public Methods

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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

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

Private Methods

Method Description
Flush ( int sequence, CancellationToken token = default(CancellationToken) ) : Task

Method Details

Cancel() public method

Cancels the specified request.
public Cancel ( [ request ) : void
request [ The request.
return void

ConnectedCommand() public method

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.
return System

Dispose() protected method

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.
return void

Flush() public method

Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.
public Flush ( ) : void
return void

ResetBackgroundColor() public method

Sets the background color of the writer.
public ResetBackgroundColor ( ) : void
return void

ResetColors() public method

Resets the foreground and background colors of the writer.
public ResetColors ( ) : void
return void

ResetForegroundColor() public method

Resets the foreground color of the writer.
public ResetForegroundColor ( ) : void
return void

SetBackgroundColor() public method

Sets the background color of the writer.
public SetBackgroundColor ( Color color ) : void
color Color The color.
return void

SetForegroundColor() public method

Sets the foreground color of the writer.
public SetForegroundColor ( Color color ) : void
color Color The color.
return void

ToString() public method

Returns a System.String that represents this instance.
public ToString ( ) : string
return string

Write() public method

Writes a character array to the text string or stream.
public Write ( [ buffer ) : void
buffer [ The character array to write to the text stream.
return void

Write() public method

Writes a character to the text string or stream.
public Write ( char value ) : void
value char The character to write to the text stream.
return void

WriteLine() public method

Writes the line.
public WriteLine ( ) : void
return void

WriteLine() public method

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.
return void

WriteLine() public method

Writes the line.
public WriteLine ( char value ) : void
value char The value.
return void

WriteLine() public method

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.
return void

Property Details

ConnectionGuid public_oe property

The connection unique identifier.
public Guid,System ConnectionGuid
return System.Guid

ID public_oe property

The request identifier.
public Guid,System ID
return System.Guid