コード例 #1
0
     public TrxnResult Save(TrxnRecord trxn)
     {
 #if !SILVERLIGHT
         send_Save(trxn);
         return(recv_Save());
 #else
         var asyncResult = Begin_Save(null, null, trxn);
         return(End_Save(asyncResult));
 #endif
     }
コード例 #2
0
            public void send_Save(TrxnRecord trxn)
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("Save", TMessageType.Call, seqid_));
                Save_args args = new Save_args();

                args.Trxn = trxn;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }
コード例 #3
0
            public void Read(TProtocol iprot)
            {
                iprot.IncrementRecursionDepth();
                try
                {
                    TField field;
                    iprot.ReadStructBegin();
                    while (true)
                    {
                        field = iprot.ReadFieldBegin();
                        if (field.Type == TType.Stop)
                        {
                            break;
                        }
                        switch (field.ID)
                        {
                        case 1:
                            if (field.Type == TType.Struct)
                            {
                                Trxn = new TrxnRecord();
                                Trxn.Read(iprot);
                            }
                            else
                            {
                                TProtocolUtil.Skip(iprot, field.Type);
                            }
                            break;

                        default:
                            TProtocolUtil.Skip(iprot, field.Type);
                            break;
                        }
                        iprot.ReadFieldEnd();
                    }
                    iprot.ReadStructEnd();
                }
                finally
                {
                    iprot.DecrementRecursionDepth();
                }
            }
コード例 #4
0
 public IAsyncResult Begin_Save(AsyncCallback callback, object state, TrxnRecord trxn)
 {
     return(send_Save(callback, state, trxn));
 }
コード例 #5
0
 public IAsyncResult send_Save(AsyncCallback callback, object state, TrxnRecord trxn)