LightningDB.LightningTransaction.Renew C# (CSharp) Method

Renew() public method

Renew current transaction.
public Renew ( ) : void
return void
        public void Renew()
        {
            if (!IsReadOnly)
                throw new InvalidOperationException("Can't renew non-readonly transaction");

            if (State != LightningTransactionState.Reseted)
                throw new InvalidOperationException("Transaction should be reseted first");

            mdb_txn_renew(_handle);
            State = LightningTransactionState.Active;
        }