TxFileManager 1.3.0
See the version list below for details.
dotnet add package TxFileManager --version 1.3.0
NuGet\Install-Package TxFileManager -Version 1.3.0
<PackageReference Include="TxFileManager" Version="1.3.0" />
paket add TxFileManager --version 1.3.0
#r "nuget: TxFileManager, 1.3.0"
// Install TxFileManager as a Cake Addin #addin nuget:?package=TxFileManager&version=1.3.0 // Install TxFileManager as a Cake Tool #tool nuget:?package=TxFileManager&version=1.3.0
.NET 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:
// Wrap a file copy and a database insert in the same transaction
TxFileManager fileMgr = new TxFileManager();
using (TransactionScope scope1 = new TransactionScope())
{
// Copy a file
fileMgr.Copy(srcFileName, destFileName);
// Insert a database record
dbMgr.ExecuteNonQuery(insertSql);
scope1.Complete();
}
Current features
Support the following file operations in transactions:
- AppendAllText
- Copy
- CreateDirectory
- DeleteDirectory
- DeleteFile
- Move
- Snapshot
- WriteAllText
See project on GitHub https://github.com/chinhdo/txFileManager for additional info.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net20 is compatible. net35 was computed. net40 was computed. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on TxFileManager:
Package | Downloads |
---|---|
Micro.Net.Transport.FileSystem
File system-based (FileSystemWatcher) transport component to be used as a base for transports for Micro.NET |
|
Bnsights.Providers.File.FileSystem
Bnsights.Providers.File.FileSystem contains a BaseFileProvider Implementation for FileSystem Bnsights Business Solutions Framework (BBSF) Package. |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on TxFileManager:
Repository | Stars |
---|---|
tjackenpacken/taskbar-groups
Lightweight utility for organizing the taskbar through groups
|
|
Warewolf-ESB/Warewolf
Effortless Microservice Design and Integration. This repository includes the code-base for the Warewolf Studio and Server.
|