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(); }
public static async Task UpdateRoom() { await Task.Delay(5000); try { RestoreVitals.UpdateRooms(); CleanRoom(); } catch (Exception ex) { } }