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();
            }
Esempio n. 2
0
            public void send_update()
            {
                oprot_.WriteMessageBegin(new TMessage("update", TMessageType.Call, seqid_));
                update_args args = new update_args();

                args.Write(oprot_);
                oprot_.WriteMessageEnd();
                oprot_.Transport.Flush();
            }
Esempio n. 3
0
            public IAsyncResult send_update(AsyncCallback callback, object state)
            {
                oprot_.WriteMessageBegin(new TMessage("update", TMessageType.Call, seqid_));
                update_args args = new update_args();

                args.Write(oprot_);
                oprot_.WriteMessageEnd();
                return(oprot_.Transport.BeginFlush(callback, state));
            }
Esempio n. 4
0
            public void send_update()
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("update", TMessageType.Call, seqid_));
                update_args args = new update_args();

                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }
Esempio n. 5
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();
            }
Esempio n. 6
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();
            }
Esempio n. 7
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();
     result.Success = iface_.update(args.OldIdentifier, args.NewIdentifier);
     oprot.WriteMessageBegin(new TMessage("update", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
Esempio n. 8
0
 public void send_update(string oldIdentifier, string newIdentifier)
 {
     oprot_.WriteMessageBegin(new TMessage("update", TMessageType.Call, seqid_));
     update_args args = new update_args();
     args.OldIdentifier = oldIdentifier;
     args.NewIdentifier = newIdentifier;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }