/// 49.) public void StartChampionSelection(double gameId, double optomisticLock, StartChampSelectDTO.Callback callback) { StartChampSelectDTO cb = new StartChampSelectDTO(callback); InvokeWithCallback("gameService", "startChampionSelection", new object[] { gameId, optomisticLock }, cb); }
public StartChampSelectDTO StartChampionSelection(double gameId, double optomisticLock) { int Id = Invoke("gameService", "startChampionSelection", new object[] { gameId, optomisticLock }); while (!results.ContainsKey(Id)) System.Threading.Thread.Sleep(10); TypedObject messageBody = results[Id].GetTO("data").GetTO("body"); StartChampSelectDTO result = new StartChampSelectDTO(messageBody); results.Remove(Id); return result; }
public async Task<StartChampSelectDTO> StartChampionSelection(Double gameId, Double optomisticLock) { int Id = Invoke("gameService", "startChampionSelection", new object[] { gameId, optomisticLock }); while (!results.ContainsKey(Id)) await Task.Delay(10); TypedObject messageBody = results[Id].GetTO("data").GetTO("body"); StartChampSelectDTO result = new StartChampSelectDTO(messageBody); results.Remove(Id); return result; }