Example #1
0
 public Transaction(IConnection connection, ITransactionResourceHandler resourceHandler = null, IDriverLogger logger = null, Bookmark bookmark = null)
 {
     _connection      = new TransactionConnection(this, connection);
     _protocol        = _connection.BoltProtocol;
     _resourceHandler = resourceHandler;
     _bookmark        = bookmark;
     _logger          = logger;
 }
Example #2
0
 private void CommitTx()
 {
     _bookmark = _protocol.CommitTransaction(_connection);
     _state    = State.Succeeded;
 }
Example #3
0
        private async Task CommitTxAsync()
        {
            _bookmark = await _protocol.CommitTransactionAsync(_connection).ConfigureAwait(false);

            _state = State.Succeeded;
        }
 public void UpdateBookmark(Bookmark bookmark)
 {
     _bookmark = bookmark;
 }