Beispiel #1
0
            public void GetVersion_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                GetVersion_args args = new GetVersion_args();

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

                try
                {
                    result.Success = iface_.GetVersion();
                    oprot.WriteMessageBegin(new TMessage("GetVersion", 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("GetVersion", TMessageType.Exception, seqid));
                    x.Write(oprot);
                }
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }