public void seatsDecremented_Process(int seqid, TProtocol iprot, TProtocol oprot) { seatsDecremented_args args = new seatsDecremented_args(); args.Read(iprot); iprot.ReadMessageEnd(); seatsDecremented_result result = new seatsDecremented_result(); try { iface_.seatsDecremented(args.Cursa); oprot.WriteMessageBegin(new TMessage("seatsDecremented", 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("seatsDecremented", TMessageType.Exception, seqid)); x.Write(oprot); } oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_seatsDecremented(Cursa cursa) { oprot_.WriteMessageBegin(new TMessage("seatsDecremented", TMessageType.Call, seqid_)); seatsDecremented_args args = new seatsDecremented_args(); args.Cursa = cursa; args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }
public IAsyncResult send_seatsDecremented(AsyncCallback callback, object state, Cursa cursa) { oprot_.WriteMessageBegin(new TMessage("seatsDecremented", TMessageType.Call, seqid_)); seatsDecremented_args args = new seatsDecremented_args(); args.Cursa = cursa; args.Write(oprot_); oprot_.WriteMessageEnd(); return(oprot_.Transport.BeginFlush(callback, state)); }