.net durable resource manager for transactional filesystem access

白昼怎懂夜的黑 提交于 2019-12-18 05:56:08

问题


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


来源:https://stackoverflow.com/questions/978254/net-durable-resource-manager-for-transactional-filesystem-access

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!