Example #1
0
 public void send_PressButton(RemoteValueID _id)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("PressButton", TMessageType.Call, seqid_));
   PressButton_args args = new PressButton_args();
   args._id = _id;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
Example #2
0
 public void PressButton_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   PressButton_args args = new PressButton_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   PressButton_result result = new PressButton_result();
   result.Success = iface_.PressButton(args._id);
   oprot.WriteMessageBegin(new TMessage("PressButton", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }