TxFileManager 1.3.0

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).

There is a newer version of this package available.
See the version list below for details.
Install-Package TxFileManager -Version 1.3.0
dotnet add package TxFileManager --version 1.3.0
<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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

.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.

.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.

Dependencies

This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on TxFileManager:

Package Downloads
Bnsights.Providers.File.FileSystem
Bnsights.Providers.File.FileSystem contains a BaseFileProvider Implementation for FileSystem Bnsights Business Solutions Framework (BBSF) Package.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on TxFileManager:

Repository Stars
Warewolf-ESB/Warewolf
Effortless Microservice Design and Integration. This repository includes the code-base for the Warewolf Studio and Server.

Version History

Version Downloads Last updated
1.4.0 1,837 3/29/2020
1.3.0 99,519 8/24/2013
1.2.1 3,585 12/6/2011
1.1.0.25 1,024 5/4/2011