Exemplo n.º 1
0
 public void RegisterUser_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   RegisterUser_args args = new RegisterUser_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   RegisterUser_result result = new RegisterUser_result();
   result.Success = iface_.RegisterUser(args.PhoneNumber, args.Name, args.DeviceId);
   oprot.WriteMessageBegin(new TMessage("RegisterUser", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Exemplo n.º 2
0
 public void RegisterUser_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   RegisterUser_args args = new RegisterUser_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   RegisterUser_result result = new RegisterUser_result();
   try {
     result.Success = iface_.RegisterUser(args.User);
   } catch (UserException ex) {
     result.Ex = ex;
   }
   oprot.WriteMessageBegin(new TMessage("RegisterUser", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }