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

Holds a single executing command.
Inheritance: System.IO.TextWriter, IColoredTextWriter
Afficher le fichier Open project: webappsuk/CoreLibraries

Méthodes publiques

Свойство Type Description
ConnectionGuid System.Guid
ID System.Guid

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

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

Private Methods

Méthode Description
Flush ( int sequence, CancellationToken token = default(CancellationToken) ) : Task

Method Details

Cancel() public méthode

Cancels the specified request.
public Cancel ( [ request ) : void
request [ The request.
Résultat void

ConnectedCommand() public méthode

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

Dispose() protected méthode

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.
Résultat void

Flush() public méthode

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

ResetBackgroundColor() public méthode

Sets the background color of the writer.
public ResetBackgroundColor ( ) : void
Résultat void

ResetColors() public méthode

Resets the foreground and background colors of the writer.
public ResetColors ( ) : void
Résultat void

ResetForegroundColor() public méthode

Resets the foreground color of the writer.
public ResetForegroundColor ( ) : void
Résultat void

SetBackgroundColor() public méthode

Sets the background color of the writer.
public SetBackgroundColor ( Color color ) : void
color Color The color.
Résultat void

SetForegroundColor() public méthode

Sets the foreground color of the writer.
public SetForegroundColor ( Color color ) : void
color Color The color.
Résultat void

ToString() public méthode

Returns a System.String that represents this instance.
public ToString ( ) : string
Résultat string

Write() public méthode

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

Write() public méthode

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

WriteLine() public méthode

Writes the line.
public WriteLine ( ) : void
Résultat void

WriteLine() public méthode

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.
Résultat void

WriteLine() public méthode

Writes the line.
public WriteLine ( char value ) : void
value char The value.
Résultat void

WriteLine() public méthode

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.
Résultat void

Property Details

ConnectionGuid public_oe property

The connection unique identifier.
public Guid,System ConnectionGuid
Résultat System.Guid

ID public_oe property

The request identifier.
public Guid,System ID
Résultat System.Guid