C# Class WebApplications.Utilities.Service.NamedPipeServer

Creates a server for a bi-directional pipe.
Inheritance: IDisposable
Mostrar archivo Open project: webappsuk/CoreLibraries Class Usage Examples

Private Properties

Property Type Description
Add void
CheckConnections void
Remove void
WriteLogs System.Threading.Task

Public Methods

Method Description
Dispose ( ) : void

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

NamedPipeServer ( [ service, [ configuration ) : System

Initializes a new instance of the NamedPipeServer class.

Private Methods

Method Description
Add ( ) : void

Starts a new listening connection, if there is capacity.

CheckConnections ( [ state ) : void

Checks the connections to ensure we have at least one open, this should never happen but services are long running, and so if something truly fatal happens this should restore connectivity.

Remove ( [ connection ) : void

Removes the specified connection.

WriteLogs ( [ logs, CancellationToken token ) : System.Threading.Task

Method Details

Dispose() public method

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

NamedPipeServer() public method

Initializes a new instance of the NamedPipeServer class.
///
public NamedPipeServer ( [ service, [ configuration ) : System
service [ The service.
configuration [ The configuration.
return System