void Application_Start(object sender, EventArgs e)
        {
            // Registrer the default hubs route: ~/signalr
            RouteTable.Routes.MapHubs();

            // Start the game
            game = new Game();
        }
Пример #2
0
 void Application_Start(object sender, EventArgs e)
 {
     // Code that runs on application startup
     RouteTable.Routes.MapHubs();
     Game = new Game();
 }
Пример #3
0
 public GameHub(Game game)
 {
     this.game = game;
 }