C# Class WebSocketListenerService.WebSocketService

Inheritance: System.ServiceProcess.ServiceBase
Afficher le fichier Open project: vtortola/WebSocketListener

Méthodes publiques

Méthode Description
WebSocketService ( ) : System

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

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

Private Methods

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

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

OnStart() protected méthode

protected OnStart ( string args ) : void
args string
Résultat void

OnStop() protected méthode

protected OnStop ( ) : void
Résultat void

WebSocketService() public méthode

public WebSocketService ( ) : System
Résultat System