Exemplo n.º 1
0
 public void deleteModelFile_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     deleteModelFile_args args = new deleteModelFile_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     deleteModelFile_result result = new deleteModelFile_result();
     try {
         result.Success = iface_.deleteModelFile(args.Filename);
     } catch (AsapiException asapiEx) {
         result.AsapiEx = asapiEx;
     }
     oprot.WriteMessageBegin(new TMessage("deleteModelFile", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
Exemplo n.º 2
0
 public bool recv_deleteModelFile()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception) {
         TApplicationException x = TApplicationException.Read(iprot_);
         iprot_.ReadMessageEnd();
         throw x;
     }
     deleteModelFile_result result = new deleteModelFile_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, "deleteModelFile failed: unknown result");
 }