public void op_Process(int seqid, TProtocol iprot, TProtocol oprot) { op_args args = new op_args(); args.Read(iprot); iprot.ReadMessageEnd(); op_result result = new op_result(); try { result.Success = iface_.op(args.AuthString, args.Name, args.NotifyPlayer); } catch (org.phybros.thrift.EAuthException aex) { result.Aex = aex; } catch (org.phybros.thrift.EDataException dex) { result.Dex = dex; } oprot.WriteMessageBegin(new TMessage("op", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_op(string authString, string name, bool notifyPlayer) #endif { oprot_.WriteMessageBegin(new TMessage("op", TMessageType.Call, seqid_)); op_args args = new op_args(); args.AuthString = authString; args.Name = name; args.NotifyPlayer = notifyPlayer; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }