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 send_update() { oprot_.WriteMessageBegin(new TMessage("update", TMessageType.Call, seqid_)); update_args args = new update_args(); args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }
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)); }
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 }
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(); }
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(); }