예제 #1
0
 public void GetOutputPorts_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     GetOutputPorts_args args = new GetOutputPorts_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     GetOutputPorts_result result = new GetOutputPorts_result();
     try {
         result.Success = iface_.GetOutputPorts(args.ComponentID);
     } catch (AsapiException asapiEx) {
         result.AsapiEx = asapiEx;
     }
     oprot.WriteMessageBegin(new TMessage("GetOutputPorts", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
예제 #2
0
 public List<string> recv_GetOutputPorts()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception) {
         TApplicationException x = TApplicationException.Read(iprot_);
         iprot_.ReadMessageEnd();
         throw x;
     }
     GetOutputPorts_result result = new GetOutputPorts_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     if (result.__isset.success) {
         return result.Success;
     }
     if (result.__isset.asapiEx) {
         throw result.AsapiEx;
     }
     throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetOutputPorts failed: unknown result");
 }