Nalix.Framework
14.4.0
dotnet add package Nalix.Framework --version 14.4.0
NuGet\Install-Package Nalix.Framework -Version 14.4.0
<PackageReference Include="Nalix.Framework" Version="14.4.0" />
<PackageVersion Include="Nalix.Framework" Version="14.4.0" />
<PackageReference Include="Nalix.Framework" />
paket add Nalix.Framework --version 14.4.0
#r "nuget: Nalix.Framework, 14.4.0"
#:package Nalix.Framework@14.4.0
#addin nuget:?package=Nalix.Framework&version=14.4.0
#tool nuget:?package=Nalix.Framework&version=14.4.0
Nalix.Framework
Dependency injection, task orchestration, object pooling, identifiers, and diagnostics for Nalix.
Nalix.Framework is the shared runtime services package. It provides the object and buffer pools, singleton container, Snowflake IDs, task workers, recurring scheduling, and report registries used by the networking stack.
Install
dotnet add package Nalix.Framework
What It Provides
| Area | Purpose | Main types |
|---|---|---|
| Injection | Thread-safe service registration and activation | InstanceManager, SingletonBase<T> |
| Tasks | Priority workers, recurring jobs, and handles | TaskManager, IWorker, IWorkerHandle, IRecurringHandle |
| Object pooling | Reusable object pools with diagnostics | ObjectPoolManager |
| Buffer pooling | Shard-aware buffer slab pools | BufferPoolManager |
| Identifiers | Chronologically sortable 64-bit IDs | Snowflake, ISnowflake |
| Diagnostics | Telemetry reports and diagnostic events | ReportRegistry, DiagnosticsEvents |
| Options | Framework-level configuration models | SnowflakeOptions, TaskManagerOptions, BufferOptions, ObjectPoolOptions |
Minimal Object Pool
using Nalix.Abstractions;
using Nalix.Framework.Memory.Objects;
public sealed class ConnectionState : IPoolable
{
public string SessionKey { get; set; } = string.Empty;
public void ResetForPool() => this.SessionKey = string.Empty;
}
ObjectPoolManager pool = new();
pool.Prealloc<ConnectionState>(32);
ConnectionState state = pool.Get<ConnectionState>();
state.SessionKey = "session-1";
pool.Return(state);
Design Notes
- Pools are explicit ownership boundaries. Return rented objects exactly once.
InstanceManageris the Nalix service container; avoid adding a second container unless hosting integration requires it.- Snowflake IDs are time ordered and suitable for connection and session identity.
Documentation
- Package guide: https://ppn.io.vn/packages/nalix-framework/
- API reference: https://ppn.io.vn/api/framework/
| 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. net11.0 is compatible. |
-
net10.0
- Nalix.Abstractions (>= 14.4.0)
- Nalix.Environment (>= 14.4.0)
-
net11.0
- Nalix.Abstractions (>= 14.4.0)
- Nalix.Environment (>= 14.4.0)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Nalix.Framework:
| Package | Downloads |
|---|---|
|
Nalix.Network
Nalix.Network is the high-performance networking runtime for the Nalix ecosystem. It provides TCP, UDP, and WebSocket listeners, sharded active connection management, transport protocol lifecycle orchestration, and robust network level rate-limiting/admission control. Designed for latency-sensitive workloads, it emphasizes efficient socket I/O, predictable concurrency, observability, and secure transport behavior so applications can process real-time traffic reliably under sustained load. |
|
|
Nalix.Runtime
Nalix.Runtime provides the core packet processing and middleware infrastructure for the Nalix ecosystem. It includes the middleware pipeline orchestration, packet dispatching channels, and execution management needed to handle message-oriented traffic with high efficiency and low latency. It serves as the foundation for building complex message-processing workflows, offering a modular and extensible architecture that decouples transport logic from application-level packet handling. |
|
|
Nalix.Hosting
Nalix.Hosting provides Microsoft-style host and builder APIs for the Nalix ecosystem. It wires configuration loading, diagnostic event bridging, packet dispatch, and TCP/UDP listener lifecycle into a familiar builder/build/start workflow for quickly bootstrapping Nalix-based servers. |
|
|
Nalix.Shared
Nalix.Shared provides the foundational low-level primitives and shared utilities for the Nalix ecosystem — including configuration binding, memory pooling, LZ4 compression, high-performance messaging, and lightweight serialization. It is optimized for zero-allocation patterns, Span{T}-based APIs, and unsafe memory access to achieve maximum throughput in real-time and networking environments. |
|
|
Nalix.Logging
Nalix.Logging is a lightweight, asynchronous logging subsystem designed STRICTLY for DEVELOPMENT environments within the Nalix ecosystem. ⚠️ WARNING: This logging library is NOT intended for production use. It is designed to provide quick, debug-friendly console and file outputs during the development phase. For production environments, please use a robust, production-ready logging framework such as Serilog, NLog, or an OpenTelemetry-compatible sink. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 14.4.0 | 902 | 11/22/2026 |
| 14.3.10 | 191 | 11/19/2026 |
| 14.3.9 | 10,265 | 10/27/2026 |
| 14.3.8 | 647 | 10/26/2026 |
| 14.3.7 | 3,889 | 10/24/2026 |
| 14.3.6 | 137 | 10/24/2026 |
| 14.3.5 | 223 | 10/6/2026 |
| 14.3.4 | 130 | 10/6/2026 |
| 14.3.3 | 180 | 9/26/2026 |
| 14.3.2 | 142 | 9/26/2026 |
| 14.3.1 | 3,471 | 8/29/2026 |
| 14.3.0 | 700 | 8/27/2026 |
| 14.2.18 | 1,118 | 8/13/2026 |
| 14.2.17 | 1,529 | 8/11/2026 |
| 14.2.16 | 811 | 8/1/2026 |
| 14.2.15 | 179 | 7/31/2026 |
| 14.2.14 | 177 | 7/31/2026 |
| 14.2.13 | 193 | 7/31/2026 |
| 14.2.12 | 189 | 7/29/2026 |
| 14.2.11 | 167 | 7/28/2026 |
- Diagnostic Events: Centralized DiagnosticsEvents registry with strongly-typed event names for Tasks, Memory, and Injection observability.
- Task Orchestration: Optimized TaskManager with worker lifecycle management, recurring jobs, group cancellation, and dispatcher diagnostics.
- Memory Pooling: High-performance ObjectPoolManager and BufferPoolManager with expand/trim/sentinel leak detection.
- Dependency Injection: Lightweight InstanceManager with diagnostic event emission for registration, resolution, and failures.
- Identity Generation: Configurable Snowflake-based ID generation with worker-node isolation.