C# Class starsky.foundation.realtime.Services.WebSocketConnectionsService

Inheritance: IWebSocketConnectionsService
Mostra file Open project: qdraw/starsky

Public Methods

Method Description
AddConnection ( WebSocketConnection connection ) : void
RemoveConnection ( Guid connectionId ) : void
SendToAllAsync ( string message, CancellationToken cancellationToken ) : Task
SendToAllAsync ( ApiNotificationResponseModel message, CancellationToken cancellationToken ) : Task
WebSocketConnectionsService ( IWebLogger logger ) : System

Method Details

AddConnection() public method

public AddConnection ( WebSocketConnection connection ) : void
connection WebSocketConnection
return void

RemoveConnection() public method

public RemoveConnection ( Guid connectionId ) : void
connectionId Guid
return void

SendToAllAsync() public method

public SendToAllAsync ( string message, CancellationToken cancellationToken ) : Task
message string
cancellationToken CancellationToken
return Task

SendToAllAsync() public method

public SendToAllAsync ( ApiNotificationResponseModel message, CancellationToken cancellationToken ) : Task
message ApiNotificationResponseModel
cancellationToken CancellationToken
return Task

WebSocketConnectionsService() public method

public WebSocketConnectionsService ( IWebLogger logger ) : System
logger IWebLogger
return System