public void update_Process(int seqid, TProtocol iprot, TProtocol oprot) { update_args args = new update_args(); args.Read(iprot); iprot.ReadMessageEnd(); update_result result = new update_result(); try { iface_.update(args.Lista); oprot.WriteMessageBegin(new TMessage("update", TMessageType.Reply, seqid)); result.Write(oprot); } catch (TTransportException) { throw; } catch (Exception ex) { Console.Error.WriteLine("Error occurred in processor:"); Console.Error.WriteLine(ex.ToString()); TApplicationException x = new TApplicationException(TApplicationException.ExceptionType.InternalError, " Internal error."); oprot.WriteMessageBegin(new TMessage("update", TMessageType.Exception, seqid)); x.Write(oprot); } oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void update_Process(int seqid, TProtocol iprot, TProtocol oprot) { update_args args = new update_args(); args.Read(iprot); iprot.ReadMessageEnd(); update_result result = new update_result(); iface_.update(); oprot.WriteMessageBegin(new TMessage("update", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void update_Process(int seqid, TProtocol iprot, TProtocol oprot) { update_args args = new update_args(); args.Read(iprot); iprot.ReadMessageEnd(); update_result result = new update_result(); try { iface_.update(args.User); } catch (com.imd.common.thrift.ThriftException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("update", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void update_Process(int seqid, TProtocol iprot, TProtocol oprot) { update_args args = new update_args(); args.Read(iprot); iprot.ReadMessageEnd(); update_result result = new update_result(); result.Success = iface_.update(args.OldIdentifier, args.NewIdentifier); oprot.WriteMessageBegin(new TMessage("update", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }