Пример #1
0
        //gameService tradeChampion exists... not sure if in use though

        public SpellBookDTO SaveSpellBook(SpellBookDTO Spellbook)
        {
            int Id = Invoke("spellBookService", "saveSpellBook",
                new object[] { Spellbook.GetBaseTypedObject() });
            while (!results.ContainsKey(Id))
                System.Threading.Thread.Sleep(10);
            TypedObject messageBody = results[Id].GetTO("data").GetTO("body");
            SpellBookDTO result = new SpellBookDTO(messageBody);
            results.Remove(Id);
            return result;
        }
        //gameService tradeChampion exists... not sure if in use though

        public async Task<SpellBookDTO> SaveSpellBook(SpellBookDTO Spellbook)
        {
            int Id = Invoke("spellBookService", "saveSpellBook",
                new object[] { Spellbook.GetBaseTypedObject() });
            while (!results.ContainsKey(Id))
                await Task.Delay(10);
            TypedObject messageBody = results[Id].GetTO("data").GetTO("body");
            SpellBookDTO result = new SpellBookDTO(messageBody);
            results.Remove(Id);
            return result;
        }