예제 #1
0
 /// 20.)
 public void GetSummonerByName(String summonerName, PublicSummoner.Callback callback)
 {
     PublicSummoner cb = new PublicSummoner(callback);
     InvokeWithCallback("summonerService", "getSummonerByName", new object[] { summonerName }, cb);
 }
예제 #2
0
 public PublicSummoner GetSummonerByName(String summonerName)
 {
     int Id = Invoke("summonerService", "getSummonerByName", new object[] { summonerName });
     while (!results.ContainsKey(Id))
         System.Threading.Thread.Sleep(10);
     TypedObject messageBody = results[Id].GetTO("data").GetTO("body");
     PublicSummoner result = new PublicSummoner(messageBody);
     results.Remove(Id);
     return result;
 }
 public async Task<PublicSummoner> GetSummonerByName(String summonerName)
 {
     int Id = Invoke("summonerService", "getSummonerByName", new object[] { summonerName });
     while (!results.ContainsKey(Id))
         await Task.Delay(10);
     TypedObject messageBody = results[Id].GetTO("data").GetTO("body");
     PublicSummoner result = new PublicSummoner(messageBody);
     results.Remove(Id);
     return result;
 }