private void OnDisposed(object sender, GraphSessionDisposedEventArgs e) { try { var transaction = _transactions[e.Session]; transaction.Dispose(); _logger.Info($"Disposing transaction {transaction}"); } finally { _transactions.Remove(e.Session); e.Session.Disposed -= OnDisposed; e.Session.Flushed -= OnFlushed; } }
private void Log(ICypherQuery query) { _logger.Info(query.GetDebugText()); }