Can I get an example usage that is not related to either DB or File-IO?
I've read about IEnlistmentNotification and Transactions and was wondering if I can use Transactional behavior for my custom classes (like my own resource manager) which is in memory only?
Scenario I was wondering - Let's say I have some data structure in memory which has some 5 properties (thread safe). I launch 5 threads to update one property each (lets say its computationally intensive). Now 4 may succeed and 5th may fail in which case I want to roll-back my data structure to its original state. Can I implement DependantTransaction for this case?
PS: I know I can manually save a cloned copy, revert it back in catch block, etc.