public void send_beginFileDownload(string file) #endif { oprot_.WriteMessageBegin(new TMessage("beginFileDownload", TMessageType.Call, seqid_)); beginFileDownload_args args = new beginFileDownload_args(); args.File = file; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }
public void beginFileDownload_Process(int seqid, TProtocol iprot, TProtocol oprot) { beginFileDownload_args args = new beginFileDownload_args(); args.Read(iprot); iprot.ReadMessageEnd(); beginFileDownload_result result = new beginFileDownload_result(); try { result.Success = iface_.beginFileDownload(args.File); } catch (AuthorizationException aze) { result.Aze = aze; } oprot.WriteMessageBegin(new TMessage("beginFileDownload", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }