EQXMedia.TxFileSystem 1.3.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package EQXMedia.TxFileSystem --version 1.3.0
NuGet\Install-Package EQXMedia.TxFileSystem -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="EQXMedia.TxFileSystem" Version="1.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EQXMedia.TxFileSystem --version 1.3.0
#r "nuget: EQXMedia.TxFileSystem, 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 EQXMedia.TxFileSystem as a Cake Addin
#addin nuget:?package=EQXMedia.TxFileSystem&version=1.3.0

// Install EQXMedia.TxFileSystem as a Cake Tool
#tool nuget:?package=EQXMedia.TxFileSystem&version=1.3.0

EQXMedia.TxFileSystem

EQXMedia.TxFileSystem is a transactional filesystem wrapper using the .NET filesystem abstraction from System.IO.Abstractions.

This filesystem wrapper supports transactional operations on:

  • Files,
  • Directories,
  • Filestreams.

Quality Gate Status

About the Project

Project Development

This library has been designed and implemented by Jarno Kamminga for EQX Media B.V., and published as an OpenSource project on GitHub.

Project Website

The project has a website of its own which can be found at https://txfilesystem.io/.

NuGet Package

A NuGet package is created of every EQXMedia.TxFileSystem release and can be installed to your .NET project using the NuGet Package Manager or dotnet command.

More information about the NuGet package can be found at NuGet.org:

https://www.nuget.org/packages/EQXMedia.TxFileSystem/

Installing the package

Package Manager
PS> Install-Package EQXMedia.TxFileSystem -Version 1.2.0
.NET CLI
$ dotnet add package EQXMedia.TxFileSystem --version 1.2.0
Package Reference
<PackageReference Include="EQXMedia.TxFileSystem" Version="1.2.0" />

Code Example


/**
*
* Because an error occurs inside the transaction scope, the creation of the file will not take place
* (or better said be rolled back):
*
* txFileSystem.File.Exists(@"C:\Users\JohnDoe\Documents\example.txt");
*
* Would simply return 'false' after execution of the below code.
*
**/

using System;
using System.IO.Abstractions;
using System.Transactions;
using EQXMedia.TxFileSystem;
    
using var transactionScope = TransactionScope();

var txFileSystem = new TxFileSystem(new FileSystem());
txFileSystem.File.Create(@"C:\Users\JohnDoe\Documents\example.txt");

throw new Exception("Error occurs after creating the file. Resulting in the creation to be rolled back.");

transactionScope.Complete();

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.1 350 1/5/2022
2.1.0 462 12/29/2021
2.0.2 300 5/19/2021
2.0.1 545 5/1/2021
2.0.0 532 4/27/2021
1.3.0 301 4/16/2021
1.2.0 297 4/10/2021
1.1.1 299 4/8/2021
1.1.0 909 4/8/2021
1.0.0 279 4/7/2021

Version 1.3.0
-------------

● Providing a System.IO.Abstractions filesystem wrapper.
● Can be used to wrap any filesystem that implements the IFileSystem interface.
● Support transactional operations on:
 ○ Files,
 ○ Directories,
 ○ Filestreams.
● Plain proxy functionality for all remaining parts of the System.IO.Abstractions interfaces.
● Fully covered by Unit Tests (100% code coverage).
● Added support for .NET Framework 4.6.1, as per System.IO.Abstractions.
● Now supports multiple framework versions:
 ○ .NET Standard 2.0,
 ○ .NET Standard 2.1,
 ○ .NET 5.0.
 ○ .NET Framework 4.6.1.
● Unit Testing all supported framework versions.