コード例 #1
0
 public void getWorld_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   getWorld_args args = new getWorld_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   getWorld_result result = new getWorld_result();
   try {
     result.Success = iface_.getWorld(args.AuthString, args.WorldName);
   } catch (org.phybros.thrift.EAuthException aex) {
     result.Aex = aex;
   } catch (org.phybros.thrift.EDataException dex) {
     result.Dex = dex;
   }
   oprot.WriteMessageBegin(new TMessage("getWorld", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
コード例 #2
0
 public void send_getWorld(string authString, string worldName)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("getWorld", TMessageType.Call, seqid_));
   getWorld_args args = new getWorld_args();
   args.AuthString = authString;
   args.WorldName = worldName;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }