Fusonic.Extensions.Common 10.0.0

Prefix Reserved
dotnet add package Fusonic.Extensions.Common --version 10.0.0
                    
NuGet\Install-Package Fusonic.Extensions.Common -Version 10.0.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="Fusonic.Extensions.Common" Version="10.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fusonic.Extensions.Common" Version="10.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Fusonic.Extensions.Common" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Fusonic.Extensions.Common --version 10.0.0
                    
#r "nuget: Fusonic.Extensions.Common, 10.0.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.
#:package Fusonic.Extensions.Common@10.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Fusonic.Extensions.Common&version=10.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Fusonic.Extensions.Common&version=10.0.0
                    
Install as a Cake Tool

Common

This project contains general, framework independent utilities and abstractions.

PropertyUtil

Utility to get the names and types from property expressions.

Example:

public class RandomClass
{
    public bool Flag { get; set; }
    public string Title { get; set; }
}
PropertyUtil.GetName<RandomClass>(c => c.Flag) //Returns "Flag"
PropertyUtil.GetType<RandomClass>(c => c.Title) //Returns typeof(string)
PropertyUtil.GetName<RandomClass>(c => c.GetType()) //Throws ArgumentException - .GetType() is no valid property expression

PathUtil

Utility for paths. Does not try to replicate System.IO.Path, but adds some helpers that Path doesn't.

Currently this only has methods for removing invalid chars from paths and filenames, as Path.GetInvalidFileNameChars() returns different values based on the OS, while PathUtil uses a fixed set. This may be for example required when generating a filename for a download.

TempFileStream

This creates a temporary file that gets automatically deleted when it is closed. Example:

await using (var fs = new TempFileStream())
{
    // Write content to file
    // Upload file
}
// File was deleted at this point.

TransactionScopeHandler

The TransactionScopeHandler provides an easy way to run code within a transaction. The transaction optios are

IsolationLevel = IsolationLevel.ReadCommitted
Timeout = TransactionManager.MaximumTimeout

Example:

// Runs async method FooMethod in a transaction. An ambient transaction gets used if it exists, otherwise a new one will be created.
await transactionScopeHandler.RunInTransactionScope(FooMethod)

// Runs async method BarMethod in a new transaction.
await transactionScopeHandler.RunInTransactionScope(async () => { await BarMethod(); return 42; }, TransactionScopeOptions.RequiresNew);

// Runs LogMethod and supresses any ambient transaction.
await transactionScopeHandler.RunInTransactionScope(LogMethod, TransactionScopeOptions.Suppress);

// Shortcut for supressing the transaction
await transactionScopeHandler.SuppressTransaction(LogMethod);
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Fusonic.Extensions.Common:

Package Downloads
Fusonic.Extensions.Hangfire

Provides Hangfire extensions, especially suited for CQRS development. (Out of band processing).

Fusonic.Extensions.AspNetCore

Provides ASP.NET Core extensions (Middelwares, Utilities ...)

Fusonic.Extensions.EntityFrameworkCore

Provides EF Core extensions (Utilities, helpers ...)

Fusonic.Extensions.Mediator

Contains a simple implementation of the common mediator pattern.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.0 382 11/25/2025
10.0.0-rc.2 163 11/24/2025
10.0.0-rc.1 126 9/12/2025
9.5.4 732 8/20/2025
9.5.3 758 3/28/2025
9.5.2 680 1/16/2025
9.5.0 455 10/4/2024
9.4.0 493 9/23/2024
9.3.1 435 9/11/2024
9.3.0 323 9/11/2024
9.2.0 353 8/8/2024
9.2.0-rc.3 90 8/7/2024
9.2.0-rc.2 74 8/5/2024
9.2.0-rc.1 87 8/1/2024
9.1.0 271 7/29/2024
9.0.0 944 7/17/2024
9.0.0-preview.2 129 6/13/2024
9.0.0-preview.1 185 4/5/2024
8.1.3 2,288 3/27/2024
8.1.2 350 3/27/2024
8.1.1 478 3/1/2024
8.1.0 1,738 1/26/2024
8.0.1 1,353 12/18/2023
8.0.0 837 11/21/2023
8.0.0-preview1 641 10/4/2023
7.4.0 573 1/25/2024
7.3.0 762 10/11/2023
7.2.1-rc.1 149 8/28/2023
7.2.0 1,517 6/28/2023
7.2.0-alpha.1 157 6/27/2023
7.1.2 1,423 5/25/2023
7.1.1 1,811 4/3/2023
7.1.1-rc.2 187 3/30/2023
7.1.1-rc.1 179 3/30/2023
7.1.0 1,863 2/28/2023
7.1.0-rc.1 191 2/20/2023
7.0.4-rc.5 187 2/23/2023
7.0.4-rc.4 184 2/23/2023
7.0.4-rc.3 192 2/23/2023
7.0.4-rc.2 223 2/22/2023
7.0.4-rc.1 190 2/16/2023
7.0.3 1,339 2/16/2023
7.0.2 1,201 2/9/2023
7.0.2-rc.1 210 2/2/2023
7.0.1 1,629 1/26/2023
7.0.0 1,377 1/24/2023
7.0.0-preview1 969 7/18/2022
7.0.0-beta.9 213 1/24/2023
7.0.0-beta.8 200 1/23/2023
7.0.0-beta.7 218 1/23/2023
7.0.0-beta.6 203 1/23/2023
7.0.0-beta.5 206 1/23/2023
7.0.0-beta.4 200 1/19/2023
7.0.0-beta.3 200 1/17/2023
7.0.0-beta.2 202 1/11/2023
7.0.0-beta.1 184 11/24/2022
6.2.2 17,529 9/20/2022
6.2.2-rc.1 224 9/19/2022
6.2.1 5,492 5/4/2022
6.2.0 2,012 4/21/2022
6.2.0-rc.2 250 4/21/2022
6.2.0-rc.1 246 4/20/2022
6.1.1 2,450 3/1/2022
6.1.0 2,130 2/10/2022
6.1.0-rc.3 247 2/10/2022
6.1.0-rc.2 247 2/10/2022
6.1.0-rc.1 255 2/9/2022
6.0.3 2,993 1/18/2022
6.0.2 4,734 1/10/2022
6.0.1 1,491 12/16/2021
6.0.0 1,973 12/13/2021
6.0.0-rc.6 287 12/6/2021
6.0.0-rc.5 507 12/6/2021
6.0.0-rc.4 667 12/6/2021
6.0.0-rc.3 515 12/6/2021
6.0.0-rc.2 475 12/6/2021
6.0.0-rc.1 797 11/15/2021
5.4.0 2,400 10/13/2021
5.3.0 1,830 9/23/2021
5.3.0-rc.1 466 9/17/2021
5.2.0 4,655 5/20/2021
5.2.0-rcjh.6 323 5/19/2021
5.2.0-rcjh.5 294 5/19/2021
5.2.0-rcjh.4 309 5/19/2021
5.2.0-rcjh.3 305 5/19/2021
5.2.0-rcjh.2 277 4/12/2021
5.2.0-rcjh.1 282 4/12/2021
5.1.3 1,827 5/19/2021
5.1.2 16,436 3/26/2021
5.1.1 2,460 1/13/2021
5.1.0 3,537 12/16/2020
5.0.0 3,947 11/17/2020
5.0.0-rc.1 452 10/15/2020
3.0.0 20,546 10/8/2020
2.1.0 27,498 8/25/2020
2.0.2 2,125 8/19/2020
2.0.1 5,352 7/3/2020
2.0.0 1,564 6/17/2020
1.0.0 1,887 6/15/2020