Example #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();
            }
Example #2
0
            public void send_ApplyManipulations(List <MMIStandard.MSceneManipulation> sceneManipulations)
            {
                oprot_.WriteMessageBegin(new TMessage("ApplyManipulations", TMessageType.Call, seqid_));
                ApplyManipulations_args args = new ApplyManipulations_args();

                args.SceneManipulations = sceneManipulations;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
                oprot_.Transport.Flush();
            }
Example #3
0
            public IAsyncResult send_ApplyManipulations(AsyncCallback callback, object state, List <MMIStandard.MSceneManipulation> sceneManipulations)
            {
                oprot_.WriteMessageBegin(new TMessage("ApplyManipulations", TMessageType.Call, seqid_));
                ApplyManipulations_args args = new ApplyManipulations_args();

                args.SceneManipulations = sceneManipulations;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
                return(oprot_.Transport.BeginFlush(callback, state));
            }