EQXMedia.TxFileSystem
1.0.0
Prefix Reserved
See the version list below for details.
dotnet add package EQXMedia.TxFileSystem --version 1.0.0
NuGet\Install-Package EQXMedia.TxFileSystem -Version 1.0.0
<PackageReference Include="EQXMedia.TxFileSystem" Version="1.0.0" />
paket add EQXMedia.TxFileSystem --version 1.0.0
#r "nuget: EQXMedia.TxFileSystem, 1.0.0"
// Install EQXMedia.TxFileSystem as a Cake Addin #addin nuget:?package=EQXMedia.TxFileSystem&version=1.0.0 // Install EQXMedia.TxFileSystem as a Cake Tool #tool nuget:?package=EQXMedia.TxFileSystem&version=1.0.0
TxFileSystem
TxFileSystem
is a transactional filesystem wrapper using the .NET Core filesystem abstraction from System.IO.Abstractions
.
This filesystem wrapper supports transactional operations on:
- Files,
- Directories,
- Filestreams.
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 var transactionScope = TransactionScope();
var fileSystem = new FileSystem();
var txFileSystem = new TxFileSystem(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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. 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 | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- System.IO.Abstractions (>= 13.2.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version 1.0-alpha
------------------
* 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).