예제 #1
0
 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;
     }
 }
예제 #2
0
 private void Log(ICypherQuery query)
 {
     _logger.Info(query.GetDebugText());
 }