コード例 #1
0
            public void Blend_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                Blend_args args = new Blend_args();

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

                try
                {
                    result.Success = iface_.Blend(args.StartPosture, args.TargetPosture, args.Weight, args.Mask, args.Properties);
                    oprot.WriteMessageBegin(new TMessage("Blend", 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("Blend", TMessageType.Exception, seqid));
                    x.Write(oprot);
                }
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
コード例 #2
0
            public void send_Blend(MMIStandard.MAvatarPostureValues startPosture, MMIStandard.MAvatarPostureValues targetPosture, double weight)
            {
                oprot_.WriteMessageBegin(new TMessage("Blend", TMessageType.Call, seqid_));
                Blend_args args = new Blend_args();

                args.StartPosture  = startPosture;
                args.TargetPosture = targetPosture;
                args.Weight        = weight;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
                oprot_.Transport.Flush();
            }
コード例 #3
0
            public IAsyncResult send_Blend(AsyncCallback callback, object state, MMIStandard.MAvatarPostureValues startPosture, MMIStandard.MAvatarPostureValues targetPosture, double weight)
            {
                oprot_.WriteMessageBegin(new TMessage("Blend", TMessageType.Call, seqid_));
                Blend_args args = new Blend_args();

                args.StartPosture  = startPosture;
                args.TargetPosture = targetPosture;
                args.Weight        = weight;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
                return(oprot_.Transport.BeginFlush(callback, state));
            }
コード例 #4
0
            public void send_Blend(MMIStandard.MAvatarPostureValues startPosture, MMIStandard.MAvatarPostureValues targetPosture, double weight, Dictionary <MMIStandard.MJointType, double> mask, Dictionary <string, string> properties)
            {
                oprot_.WriteMessageBegin(new TMessage("Blend", TMessageType.Call, seqid_));
                Blend_args args = new Blend_args();

                args.StartPosture  = startPosture;
                args.TargetPosture = targetPosture;
                args.Weight        = weight;
                args.Mask          = mask;
                args.Properties    = properties;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
                oprot_.Transport.Flush();
            }
コード例 #5
0
            public IAsyncResult send_Blend(AsyncCallback callback, object state, MMIStandard.MAvatarPostureValues startPosture, MMIStandard.MAvatarPostureValues targetPosture, double weight, Dictionary <MMIStandard.MJointType, double> mask, Dictionary <string, string> properties)
            {
                oprot_.WriteMessageBegin(new TMessage("Blend", TMessageType.Call, seqid_));
                Blend_args args = new Blend_args();

                args.StartPosture  = startPosture;
                args.TargetPosture = targetPosture;
                args.Weight        = weight;
                args.Mask          = mask;
                args.Properties    = properties;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
                return(oprot_.Transport.BeginFlush(callback, state));
            }