C# Class Codebreak.App.Website.Signalr.StatisticHub

Inheritance: Microsoft.AspNet.SignalR.Hub
Show file Open project: hussein-aitlahcen/codebreak

Public Properties

Property Type Description
Users ConnectionMapping
Visitors HashSet

Public Methods

Method Description
NotifyPlayersConnected ( string connectionId ) : void

Notify all connected clients

NotifyVisitorCount ( ) : void

Notify all connected clients that there is X clients online

OnConnected ( ) : System.Threading.Tasks.Task

OnDisconnected ( bool stopCalled ) : System.Threading.Tasks.Task

OnReconnected ( ) : System.Threading.Tasks.Task

Method Details

NotifyPlayersConnected() public static method

Notify all connected clients
public static NotifyPlayersConnected ( string connectionId ) : void
connectionId string
return void

NotifyVisitorCount() public static method

Notify all connected clients that there is X clients online
public static NotifyVisitorCount ( ) : void
return void

OnConnected() public method

public OnConnected ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

OnDisconnected() public method

public OnDisconnected ( bool stopCalled ) : System.Threading.Tasks.Task
stopCalled bool
return System.Threading.Tasks.Task

OnReconnected() public method

public OnReconnected ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Property Details

Users public static property

Static variable representing connected users
public static ConnectionMapping Users
return ConnectionMapping

Visitors public static property

Static variable representing the amout of visitors
public static HashSet Visitors
return HashSet