public void CreateAccount_Process(int seqid, TProtocol iprot, TProtocol oprot) { CreateAccount_args args = new CreateAccount_args(); args.Read(iprot); iprot.ReadMessageEnd(); CreateAccount_result result = new CreateAccount_result(); result.Success = iface_.CreateAccount(args.CustomerId, args.Account); oprot.WriteMessageBegin(new TMessage("CreateAccount", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public long recv_CreateAccount() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } CreateAccount_result result = new CreateAccount_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "CreateAccount failed: unknown result"); }