byte[] IApplicationWebServiceContract.AuthenticateApplication(byte[] data) { try { using (var bytes = new MemoryStream(data)) { var version = StringProxy.Deserialize(bytes); // 4.7.1 var channelType = EnumProxy <ChannelType> .Deserialize(bytes); // Steam var publicKey = StringProxy.Deserialize(bytes); // string.Empty; var view = OnAuthenticateApplication(version, channelType, publicKey); using (var outBytes = new MemoryStream()) { AuthenticateApplicationViewProxy.Serialize(outBytes, view); return(outBytes.ToArray()); } } } catch (Exception ex) { Log.Error("Unable to handle AuthenticateApplication request:"); Log.Error(ex); return(null); } }
public byte[] AuthenticateApplication(byte[] data) { var outputStream = new MemoryStream(); AuthenticateApplicationViewProxy.Serialize(outputStream, photonServers); return(outputStream.ToArray()); }
// Token: 0x06001138 RID: 4408 RVA: 0x0001B9C4 File Offset: 0x00019BC4 public static Coroutine AuthenticateApplication(string clientVersion, ChannelType channel, string publicKey, Action <AuthenticateApplicationView> callback, Action <Exception> handler) { Coroutine result; using (MemoryStream memoryStream = new MemoryStream()) { StringProxy.Serialize(memoryStream, clientVersion); EnumProxy <ChannelType> .Serialize(memoryStream, channel); StringProxy.Serialize(memoryStream, publicKey); result = MonoInstance.Mono.StartCoroutine(SoapClient.MakeRequest("IApplicationWebServiceContract", "ApplicationWebService", "AuthenticateApplication", memoryStream.ToArray(), delegate(byte[] data) { if (callback != null) { callback(AuthenticateApplicationViewProxy.Deserialize(new MemoryStream(data))); } }, handler)); } return(result); }