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();
            }
예제 #2
0
            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();
            }
예제 #3
0
            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();
            }
예제 #4
0
파일: Rpc.cs 프로젝트: omanamos/robotics
 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();
 }