Пример #1
0
 public void Kill_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   Kill_args args = new Kill_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   Kill_result result = new Kill_result();
   try {
     result.Success = iface_.Kill(args.User);
   } catch (UserException ex) {
     result.Ex = ex;
   }
   oprot.WriteMessageBegin(new TMessage("Kill", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Пример #2
0
 public void send_Kill(User user)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("Kill", TMessageType.Call, seqid_));
   Kill_args args = new Kill_args();
   args.User = user;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }