public void ImportDDIModel_Process(int seqid, TProtocol iprot, TProtocol oprot) { ImportDDIModel_args args = new ImportDDIModel_args(); args.Read(iprot); iprot.ReadMessageEnd(); ImportDDIModel_result result = new ImportDDIModel_result(); try { try { result.Success = iface_.ImportDDIModel(args.Path); } catch (TDDIValidationFailedException ValidationFailedException) { result.ValidationFailedException = ValidationFailedException; } oprot.WriteMessageBegin(new TMessage("ImportDDIModel", 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("ImportDDIModel", TMessageType.Exception, seqid)); x.Write(oprot); } oprot.WriteMessageEnd(); oprot.Transport.Flush(); }