TxFileManager 1.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package TxFileManager --version 1.3.0                
NuGet\Install-Package TxFileManager -Version 1.3.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TxFileManager" Version="1.3.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TxFileManager --version 1.3.0                
#r "nuget: TxFileManager, 1.3.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.