示例#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());
 }