コード例 #1
0
            public void recv_ExportModelToDDIFile()
            {
                TMessage msg = iprot_.ReadMessageBegin();

                if (msg.Type == TMessageType.Exception)
                {
                    TApplicationException x = TApplicationException.Read(iprot_);
                    iprot_.ReadMessageEnd();
                    throw x;
                }
                ExportModelToDDIFile_result result = new ExportModelToDDIFile_result();

                result.Read(iprot_);
                iprot_.ReadMessageEnd();
                if (result.__isset.ValidationFailedException)
                {
                    throw result.ValidationFailedException;
                }
                return;
            }
コード例 #2
0
            public void ExportModelToDDIFile_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                ExportModelToDDIFile_args args = new ExportModelToDDIFile_args();

                args.Read(iprot);
                iprot.ReadMessageEnd();
                ExportModelToDDIFile_result result = new ExportModelToDDIFile_result();

                try
                {
                    try
                    {
                        iface_.ExportModelToDDIFile(args.Path, args.ODEPackage);
                    }
                    catch (TDDIValidationFailedException ValidationFailedException)
                    {
                        result.ValidationFailedException = ValidationFailedException;
                    }
                    oprot.WriteMessageBegin(new TMessage("ExportModelToDDIFile", 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("ExportModelToDDIFile", TMessageType.Exception, seqid));
                    x.Write(oprot);
                }
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }