C# Class WebSocketListenerService.WebSocketService

Inheritance: System.ServiceProcess.ServiceBase
Exibir arquivo Open project: vtortola/WebSocketListener

Public Methods

Method Description
WebSocketService ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnStart ( string args ) : void
OnStop ( ) : void

Private Methods

Method Description
AcceptWebSocketClientsAsync ( WebSocketListener server, CancellationToken token ) : Task
HandleConnectionAsync ( WebSocket ws, CancellationToken cancellation ) : Task
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Log ( String line ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

OnStart() protected method

protected OnStart ( string args ) : void
args string
return void

OnStop() protected method

protected OnStop ( ) : void
return void

WebSocketService() public method

public WebSocketService ( ) : System
return System