public void getMyProfile_Process(int seqid, TProtocol iprot, TProtocol oprot) { getMyProfile_args args = new getMyProfile_args(); args.Read(iprot); iprot.ReadMessageEnd(); getMyProfile_result result = new getMyProfile_result(); try { result.Success = iface_.getMyProfile(args.Username); } catch (UserException ex) { result.Ex = ex; } oprot.WriteMessageBegin(new TMessage("getMyProfile", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_getMyProfile(string username) #endif { oprot_.WriteMessageBegin(new TMessage("getMyProfile", TMessageType.Call, seqid_)); getMyProfile_args args = new getMyProfile_args(); args.Username = username; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }