public void send_getAllInboxFolderWithRules(int userId, Session session)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("getAllInboxFolderWithRules", TMessageType.Call, seqid_));
   getAllInboxFolderWithRules_args args = new getAllInboxFolderWithRules_args();
   args.UserId = userId;
   args.Session = session;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
 public void getAllInboxFolderWithRules_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   getAllInboxFolderWithRules_args args = new getAllInboxFolderWithRules_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   getAllInboxFolderWithRules_result result = new getAllInboxFolderWithRules_result();
   try {
     result.Success = iface_.getAllInboxFolderWithRules(args.UserId, args.Session);
   } catch (InboxException ex) {
     result.Ex = ex;
   } catch (SessionException se) {
     result.Se = se;
   }
   oprot.WriteMessageBegin(new TMessage("getAllInboxFolderWithRules", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }