Example #1
0
 public void send_getServerTime()
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("getServerTime", TMessageType.Call, seqid_));
   getServerTime_args args = new getServerTime_args();
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
Example #2
0
 public void getServerTime_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   getServerTime_args args = new getServerTime_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   getServerTime_result result = new getServerTime_result();
   try {
     result.Success = iface_.getServerTime();
   } catch (TalkException e) {
     result.E = e;
   }
   oprot.WriteMessageBegin(new TMessage("getServerTime", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }