Exemplo n.º 1
0
        public static async Task UpdateRoom()
        {
            await Task.Delay(300000);

            RestoreVitals.UpdateRooms();

            HubContext.getHubContext.Clients.All.addNewMessageToPage("This is will update Rooms every 5 minutes and not block the game");

            CleanRoom();
        }
Exemplo n.º 2
0
        public static async Task UpdateRoom()
        {
            await Task.Delay(5000);

            try
            {
                RestoreVitals.UpdateRooms();

                CleanRoom();
            }
            catch (Exception ex)
            {
            }
        }