Пример #1
0
 public void UnregisterRemoteConsumer_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     UnregisterRemoteConsumer_args args = new UnregisterRemoteConsumer_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     UnregisterRemoteConsumer_result result = new UnregisterRemoteConsumer_result();
     try {
         iface_.UnregisterRemoteConsumer(args.RemoteConsumerID);
     } catch (AsapiException asapiEx) {
         result.AsapiEx = asapiEx;
     }
     oprot.WriteMessageBegin(new TMessage("UnregisterRemoteConsumer", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
Пример #2
0
 public void recv_UnregisterRemoteConsumer()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception) {
         TApplicationException x = TApplicationException.Read(iprot_);
         iprot_.ReadMessageEnd();
         throw x;
     }
     UnregisterRemoteConsumer_result result = new UnregisterRemoteConsumer_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     if (result.__isset.asapiEx) {
         throw result.AsapiEx;
     }
     return;
 }