C# Class ThinkSprint.ChatHub

Inheritance: Microsoft.AspNet.SignalR.Hub
Mostra file Open project: pebblecode/ThinkSprint

Public Methods

Method Description
OnDisconnected ( ) : System.Threading.Tasks.Task
Register ( string name ) : void
ResetGame ( string gameName ) : void
Send ( string name, string message ) : void
SendAnswer ( string name, int index, string gameName ) : void
StartGame ( ) : void

Private Methods

Method Description
SendQuestion ( Game game ) : void

Method Details

OnDisconnected() public method

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

Register() public method

public Register ( string name ) : void
name string
return void

ResetGame() public method

public ResetGame ( string gameName ) : void
gameName string
return void

Send() public method

public Send ( string name, string message ) : void
name string
message string
return void

SendAnswer() public method

public SendAnswer ( string name, int index, string gameName ) : void
name string
index int
gameName string
return void

StartGame() public method

public StartGame ( ) : void
return void