Пример #1
0
 public void killSession_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   killSession_args args = new killSession_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   killSession_result result = new killSession_result();
   try {
     result.Success = iface_.killSession(args.Session);
   } catch (SessionException ex) {
     result.Ex = ex;
   }
   oprot.WriteMessageBegin(new TMessage("killSession", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Пример #2
0
 public void send_killSession(Session session)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("killSession", TMessageType.Call, seqid_));
   killSession_args args = new killSession_args();
   args.Session = session;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }