NexusLabs.Framework
0.2.0
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
<PackageReference Include="NexusLabs.Framework" Version="0.2.0" />
<PackageVersion Include="NexusLabs.Framework" Version="0.2.0" />
<PackageReference Include="NexusLabs.Framework" />
paket add NexusLabs.Framework --version 0.2.0
#r "nuget: NexusLabs.Framework, 0.2.0"
#:package NexusLabs.Framework@0.2.0
#addin nuget:?package=NexusLabs.Framework&version=0.2.0
#tool nuget:?package=NexusLabs.Framework&version=0.2.0
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 | Versions 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. |
-
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 |