public void InsertComponent_Process(int seqid, TProtocol iprot, TProtocol oprot) { InsertComponent_args args = new InsertComponent_args(); args.Read(iprot); iprot.ReadMessageEnd(); InsertComponent_result result = new InsertComponent_result(); try { iface_.InsertComponent(args.ComponentID, args.ComponentType); } catch (AsapiException asapiEx) { result.AsapiEx = asapiEx; } oprot.WriteMessageBegin(new TMessage("InsertComponent", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void recv_InsertComponent() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } InsertComponent_result result = new InsertComponent_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.asapiEx) { throw result.AsapiEx; } return; }