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
     }
            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
            }
            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();
                }
            }
 public IAsyncResult Begin_Save(AsyncCallback callback, object state, TrxnRecord trxn)
 {
     return(send_Save(callback, state, trxn));
 }
 public IAsyncResult send_Save(AsyncCallback callback, object state, TrxnRecord trxn)