void Application_Start(object sender, EventArgs e) { // Registrer the default hubs route: ~/signalr RouteTable.Routes.MapHubs(); // Start the game game = new Game(); }
void Application_Start(object sender, EventArgs e) { // Code that runs on application startup RouteTable.Routes.MapHubs(); Game = new Game(); }
public GameHub(Game game) { this.game = game; }