예제 #1
0
 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;
 }
예제 #2
0
 /// 20.)
 public void GetSummonerByName(String summonerName, PublicSummoner.Callback callback)
 {
     PublicSummoner cb = new PublicSummoner(callback);
     InvokeWithCallback("summonerService", "getSummonerByName", new object[] { summonerName }, cb);
 }