public void send_moveToInbox(string fromFolder, string toFolder, List<string> insatnceList, Session session) #endif { oprot_.WriteMessageBegin(new TMessage("moveToInbox", TMessageType.Call, seqid_)); moveToInbox_args args = new moveToInbox_args(); args.FromFolder = fromFolder; args.ToFolder = toFolder; args.InsatnceList = insatnceList; args.Session = session; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }
public void moveToInbox_Process(int seqid, TProtocol iprot, TProtocol oprot) { moveToInbox_args args = new moveToInbox_args(); args.Read(iprot); iprot.ReadMessageEnd(); moveToInbox_result result = new moveToInbox_result(); try { result.Success = iface_.moveToInbox(args.FromFolder, args.ToFolder, args.InsatnceList, args.Session); } catch (InboxException ex) { result.Ex = ex; } catch (SessionException se) { result.Se = se; } oprot.WriteMessageBegin(new TMessage("moveToInbox", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }