Пример #1
0
            public void ApplyManipulations_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                ApplyManipulations_args args = new ApplyManipulations_args();

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

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