예제 #1
0
파일: UpdateWorld.cs 프로젝트: xjuantxu/MIM
        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();
        }
예제 #2
0
        public static async Task UpdateRoom()
        {
            await Task.Delay(5000);

            try
            {
                RestoreVitals.UpdateRooms();

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