public void send_truncate(string cfname)
 {
     oprot_.WriteMessageBegin(new TMessage("truncate", TMessageType.Call, seqid_));
     truncate_args args = new truncate_args();
     args.Cfname = cfname;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
 public void truncate_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     truncate_args args = new truncate_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     truncate_result result = new truncate_result();
     try {
       iface_.truncate(args.Cfname);
     } catch (InvalidRequestException ire) {
       result.Ire = ire;
     } catch (UnavailableException ue) {
       result.Ue = ue;
     }
     oprot.WriteMessageBegin(new TMessage("truncate", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
Esempio n. 3
0
 public void send_truncate(string cfname)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("truncate", TMessageType.Call, seqid_));
   truncate_args args = new truncate_args();
   args.Cfname = cfname;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }