Пример #1
0
 public void recv_SwitchAllOn()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   SwitchAllOn_result result = new SwitchAllOn_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   return;
 }
Пример #2
0
 public void SwitchAllOn_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   SwitchAllOn_args args = new SwitchAllOn_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   SwitchAllOn_result result = new SwitchAllOn_result();
   iface_.SwitchAllOn(args._homeId);
   oprot.WriteMessageBegin(new TMessage("SwitchAllOn", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }