NexusLabs.Framework 0.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package NexusLabs.Framework --version 0.2.0
                    
NuGet\Install-Package NexusLabs.Framework -Version 0.2.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="NexusLabs.Framework" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NexusLabs.Framework" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="NexusLabs.Framework" />
                    
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 NexusLabs.Framework --version 0.2.0
                    
#r "nuget: NexusLabs.Framework, 0.2.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 NexusLabs.Framework@0.2.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=NexusLabs.Framework&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=NexusLabs.Framework&version=0.2.0
                    
Install as a Cake Tool

NexusLabs.Framework

Cross-cutting C# utilities used across Nexus Software Labs projects: a result-pattern type system (Tried/TriedEx/TriedNullEx), a Safely try/catch facade, stream wrappers (StreamWithLength, ReadOnlySubstream, StreamPump), async-aware event-handler extensions, process diagnostics helpers, and async ADO.NET interface shapes.

Install

dotnet add package NexusLabs.Framework

Targets net10.0. For earlier .NET versions, pin to the 0.x line.

What's in the package

Concern Types
Result pattern Tried<T>, TriedEx<T>, TriedNullEx<T>, Safely, ExceptionHelper
IO StreamWithLength, ReadOnlySubstream, SubstreamOptions, StreamPump
Diagnostics ProcessExtensions (WaitForExitAsync with beforeWaitCallback)
Async events MulticastDelegateExtensions, EventExtensions, GenericEventExtensions, ActionExtensions, AsyncVoidHelper
Async ADO.NET IAsyncDbConnection, IAsyncDbCommand, IAsyncDbDataReader, IDbConnectionFactory
Tasks TaskExtensions (.Forget(), ToOrderedAsyncEnumerable, ToUnorderedAsyncEnumerable)
Time (deprecated) ITimeProvider, TimeProviderWrapper — use BCL System.TimeProvider instead

See the 0.2.0 release notes for migration details from prior 0.1.x.

Result pattern

TriedEx<int> result = Safely.GetResultOrException(() => int.Parse(input));

result.Match(
    onSuccess: value => Console.WriteLine($"parsed: {value}"),
    onError: ex => Console.WriteLine($"failed: {ex.Message}"));

Archived packages

Six packages from this repository were archived as part of 0.2.0:

  • NexusLabs.Autofac, NexusLabs.Collections.Generic, NexusLabs.Contracts, NexusLabs.Dynamo, NexusLabs.Reflection, NexusLabs.Testing.Xunit

The 0.x lines remain on nuget.org. Source is preserved on the release/0.x branch. See docs/archived-packages/ for per-package migration guidance.

License

MIT © Nexus Software Labs

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 NexusLabs.Framework:

Package Downloads
NexusLabs.Collections.Generic

This package offers extension methods for working with enumerables and collections as well as entirely new collections. This includes things like caching enumerables to trade off memory for reduced subsequent query time and 'frozen' collections that help articulate unchanging collections.

NexusLabs.Xunit.Assertions

xUnit.v3 assertion helpers that integrate with the NexusLabs.Framework result-pattern types (TriedEx<T>, TriedNullEx<T?>) and HTTP response shapes. Uses C# 14 extension(Assert) blocks to augment Xunit.Assert with NexusLabs-aware overloads.

NexusLabs.Data.Sql

Provider-agnostic decorators and helpers for the async ADO.NET interface shapes defined in NexusLabs.Framework. Includes connection lease (pool-size limiting with timeout-bounded acquisition and a ConnectionPoolExhaustedException), open-tracking diagnostics, structured logging command wrapper, and a predicate-based connection factory.

NexusLabs.TUnit.Assertions

TUnit assertions for NexusLabs.Framework TriedEx and TriedNullEx results. Assert the complete result with Succeeded() or Failed(), receive the successful value or captured exception from await, and get bundled analyzer guidance for direct member assertions.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.8 126 7/28/2026
0.2.7 3,851 7/24/2026
0.2.6 5,679 7/11/2026
0.2.5 348 6/18/2026
0.2.4 1,238 6/17/2026
0.2.3 356 6/9/2026
0.2.2 566 5/30/2026
0.2.1 144 5/24/2026
0.2.0 109 5/23/2026
0.1.4 1,849 12/5/2025
0.1.3 446 11/30/2025
0.1.2 344 11/30/2025
0.1.1 203 11/30/2025
0.0.46 4,466 7/21/2024
0.0.45 1,799 5/24/2023
0.0.42 949 3/31/2023
0.0.41 367 3/31/2023
0.0.40 459 3/26/2023
0.0.39 385 3/26/2023
0.0.38 388 3/25/2023
Loading failed