Exemple #1
0
 private void TransactionCommitted(object sender, TransactionEventArgs transactionEventArgs)
 {
     if (transactionEventArgs.Transaction.IsNested)
     {
         return;
     }
     Versions.MergeWith(materializedVersions, Session);
     Versions.MergeWith(modifiedVersions, Session);
     foreach (var key in removedKeys)
     {
         Versions.Remove(key);
     }
     materializedVersions.Clear();
     modifiedVersions.Clear();
     removedKeys.Clear();
 }
Exemple #2
0
 private void TransactionRollbacked(object sender, TransactionEventArgs transactionEventArgs)
 {
     removedKeys.Clear();
     modifiedVersions.Clear();
 }