コード例 #1
0
 public void msgDelete_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   msgDelete_args args = new msgDelete_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   msgDelete_result result = new msgDelete_result();
   try {
     result.Success = iface_.msgDelete(args.InstanceId, args.MsgList, args.Session);
   } catch (ChatUserInfoException ex) {
     result.Ex = ex;
   } catch (SessionException se) {
     result.Se = se;
   }
   oprot.WriteMessageBegin(new TMessage("msgDelete", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
コード例 #2
0
 public void send_msgDelete(string instanceId, List<string> msgList, Session session)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("msgDelete", TMessageType.Call, seqid_));
   msgDelete_args args = new msgDelete_args();
   args.InstanceId = instanceId;
   args.MsgList = msgList;
   args.Session = session;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }