Esempio n. 1
0
 public void InsertChannel_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     InsertChannel_args args = new InsertChannel_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     InsertChannel_result result = new InsertChannel_result();
     try {
         iface_.InsertChannel(args.ChannelID, args.SourceComponentID, args.SourcePortID, args.TargetComponentID, args.TargetPortID);
     } catch (AsapiException asapiEx) {
         result.AsapiEx = asapiEx;
     }
     oprot.WriteMessageBegin(new TMessage("InsertChannel", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
Esempio n. 2
0
 public void recv_InsertChannel()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception) {
         TApplicationException x = TApplicationException.Read(iprot_);
         iprot_.ReadMessageEnd();
         throw x;
     }
     InsertChannel_result result = new InsertChannel_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     if (result.__isset.asapiEx) {
         throw result.AsapiEx;
     }
     return;
 }