public static Game ProcessLobbyFile(string path) { var game = new BattleLobbyParser(path).Parse(); FetchProfiles(game); return(game); }
public static Game ProcessLobbyFile(string path) { var game = new BattleLobbyParser(path).Parse(); FetchProfiles(game).ContinueWith(t => { if (t.Exception != null) { throw t.Exception; } }); return(game); }
public static async Task <Game> ProcessLobbyFile(string path) { var tmpPath = Path.GetTempFileName(); await SafeCopy(path, tmpPath, true); var game = new BattleLobbyParser(tmpPath).Parse(); await FetchProfiles(game); return(game); }