public byte[] GetShop(byte[] data) { var outputStream = new MemoryStream(); UberStrikeItemShopClientViewProxy.Serialize(outputStream, shopData); return(outputStream.ToArray()); }
public UberStrikeItemShopClientView GetShop() { using (var bytes = new MemoryStream()) { var data = Channel.GetShop(bytes.ToArray()); using (var inBytes = new MemoryStream(data)) return(UberStrikeItemShopClientViewProxy.Deserialize(inBytes)); } }
// Token: 0x060011BC RID: 4540 RVA: 0x0001D1B4 File Offset: 0x0001B3B4 public static Coroutine GetShop(Action <UberStrikeItemShopClientView> callback, Action <Exception> handler) { Coroutine result; using (MemoryStream memoryStream = new MemoryStream()) { result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IShopWebServiceContract", "ShopWebService", "GetShop", memoryStream.ToArray(), delegate(byte[] data) { if (callback != null) { callback(UberStrikeItemShopClientViewProxy.Deserialize(new MemoryStream(data))); } }, handler)); } return(result); }
byte[] IShopWebServiceContract.GetShop(byte[] data) { try { var view = OnGetShop(); using (var outBytes = new MemoryStream()) { UberStrikeItemShopClientViewProxy.Serialize(outBytes, view); return(outBytes.ToArray()); } } catch (Exception ex) { Log.Error("Unable to handle GetShop request:"); Log.Error(ex); return(null); } }