-->

.net durable resource manager for transactional fi

2020-02-12 06:18发布

问题:

I'm trying to wrap my head around the use of the System.Transactions namespace in C#. I've found some documentation on MSDN regarding using resource managers, but it only covers volatile, in-memory resource managers in any detail (like Transactional ). I'm basically looking for something that I can use inside of a TransactionScope, just like Transactional<> but use it for writing/modifying/deleting files on disk. Does something like this exist in the standard libs? I've read that NTFS has "TxF" now to allow transactional filesystem access - I was expecting to find something in .net that leverages that. Perhaps I need to implement my own?

回答1:

Do you mean something as described in this MSDN article or is this not what you are looking for?

Bart de Smet also has an article about this on his blog.



回答2:

I think you will need to implement it on your own. But see following to get started:

  • http://www.codeproject.com/KB/vista/KTM.aspx
  • Windows Vista - Introducing TxF in C# (part 2) - Using System.Transactions and the DTC
  • NTFS: Enhance Your Apps With File System Transactions