本文摘自PHP中文网,作者Y2J,侵删。
推荐一个文件事物管理 Transactional File ManagerProject Description
Transactional File Manager is a .NET API that supports including file system operations such as file copy, move, delete, append, etc. in a transaction. It's an implementation of System.Transaction.IEnlistmentNotification (works with System.Transactions.TransactionScope).
This library allows you to wrap file system operations in transactions like this:
1 2 3 4 5 |
|
Current Features
Support the following file operations in transactions:
AppendAllText
Copy
CreateDirectory
DeleteDirectory
DeleteFile
Move
Snapshot
WriteAllText
WriteAllBytes
This library supports any file system and is not a wrapper over Transactional NTFS (see AlphaFS).
Examples
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|
这是一个开源项目。原始项目网站是 事务文件管理器。
版权所有(c)2008-2013 Chinh Do
特此授予任何获得本软件和相关文档文件(“软件”)副本的人免费许可,无限制地处理本软件,包括但不限于使用,复制,修改,合并的权利,发布,分发,再授权和/或出售本软件的副本,并允许提供本软件的人员遵守以下条件:
上述版权声明和本许可声明应包含在本软件的所有副本或主要部分。
该软件“按原样”提供,不附带任何明示或暗示的保证,包括但不限于适销性,适用于特定用途和不侵权的保证。在任何情况下,作者或版权所有者均不对任何索赔,损害或其他责任负责,无论是否因与本软件或本软件的使用或其他交易相关的任何合同,侵权行为或其他方面的行为软件。
以上就是文件事物管理Transactional File Manager的实例详解的详细内容!
相关阅读 >>
更多相关阅读请进入《Transactional》频道 >>

C#高级编程(第11版) C# 7 & .NET Core 2.0(.NET开发经典名著)
作者:[美]克里斯琴·内格尔(Christian Nagel)著。出版时间:2019年3月。