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

Implements a connection to the service over a named pipe.
Inheritance: IConnection, IDisposable
Exibir arquivo Open project: webappsuk/CoreLibraries

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

NamedPipeConnection ( [ server ) : System

Initializes a new instance of the NamedPipeConnection class.

OnDisconnect ( ) : void

Called when the server disconnects.

Remove ( [ connectedCommand ) : void

Removes the specified connected command.

Start ( ) : void

Starts this instance.

ToString ( ) : string

Returns a System.String that represents this instance.

Private Methods

Method Description
Send ( [ message, CancellationToken token = default(CancellationToken) ) : Task

Method Details

Dispose() public method

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

NamedPipeConnection() public method

Initializes a new instance of the NamedPipeConnection class.
public NamedPipeConnection ( [ server ) : System
server [ The server.
return System

OnDisconnect() public method

Called when the server disconnects.
public OnDisconnect ( ) : void
return void

Remove() public method

Removes the specified connected command.
public Remove ( [ connectedCommand ) : void
connectedCommand [ The connected command.
return void

Start() public method

Starts this instance.
public Start ( ) : void
return void

ToString() public method

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