Nalix.Runtime
14.4.0
dotnet add package Nalix.Runtime --version 14.4.0
NuGet\Install-Package Nalix.Runtime -Version 14.4.0
<PackageReference Include="Nalix.Runtime" Version="14.4.0" />
<PackageVersion Include="Nalix.Runtime" Version="14.4.0" />
<PackageReference Include="Nalix.Runtime" />
paket add Nalix.Runtime --version 14.4.0
#r "nuget: Nalix.Runtime, 14.4.0"
#:package Nalix.Runtime@14.4.0
#addin nuget:?package=Nalix.Runtime&version=14.4.0
#tool nuget:?package=Nalix.Runtime&version=14.4.0
Nalix.Runtime
Packet dispatch, middleware, handlers, throttling, session persistence, and runtime services for Nalix applications.
Nalix.Runtime sits above transport and codec packages. It routes decoded packets to handlers, executes middleware, applies rate policies, handles handshake/session flows, and coordinates dispatch work away from socket threads.
Install
dotnet add package Nalix.Runtime
What It Provides
| Area | Purpose | Main types |
|---|---|---|
| Dispatching | Shard-aware packet dispatch channels and contexts | PacketDispatchChannel, PacketContext, PacketDispatcherBase |
| Middleware | Inbound and outbound packet pipeline | MiddlewarePipeline, IPacketMiddleware, RateLimitMiddleware, TimeoutMiddleware |
| Handlers | Built-in handshake, proof-of-work, and session handlers | HandshakeHandlers, ProofOfWorkHandlers, SessionHandlers |
| Throttling | Token-bucket rate limiting | TokenBucketLimiter, PolicyRateLimiter |
| Sessions | Session services, persistence observers, and in-memory store | SessionService, InMemorySessionStore, SessionPersistenceObserver |
| Timekeeping | Clock skew and synchronization helpers | TimeSynchronizer |
| Options | Runtime dispatch and throttling configuration | DispatchOptions, TokenBucketOptions, SessionStoreOptions |
Middleware
using Nalix.Abstractions.Middleware;
using Nalix.Abstractions.Networking.Packets;
public sealed class AuditMiddleware<TPacket> : IPacketMiddleware<TPacket>
where TPacket : IPacket
{
public async ValueTask InvokeAsync(
IPacketContext<TPacket> context,
Func<CancellationToken, ValueTask> next)
{
await next(context.CancellationToken);
}
}
Packet Handler
using Nalix.Abstractions.Networking.Packets;
using Nalix.Abstractions.Security;
[PacketHandler("Chat")]
public static class ChatHandlers
{
[PacketOpcode(201)]
[PacketPermission(PermissionLevel.USER)]
public static ValueTask HandleMessageAsync(IPacketContext<ChatMessage> context)
{
ChatMessage message = context.Packet;
return ValueTask.CompletedTask;
}
}
Design Notes
- Handlers are registered explicitly for Native AOT compatibility.
- Dispatch channels keep application handlers off socket receive loops.
- Session resume is single-use and proof-verified before token consumption.
Documentation
- Package guide: https://ppn.io.vn/packages/nalix-runtime/
- API reference: https://ppn.io.vn/api/runtime/
- Middleware: https://ppn.io.vn/api/runtime/middleware/
- Session resume: https://ppn.io.vn/api/security/session-resume/
| 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.Codec (>= 14.4.0)
- Nalix.Framework (>= 14.4.0)
-
net11.0
- Nalix.Abstractions (>= 14.4.0)
- Nalix.Codec (>= 14.4.0)
- Nalix.Framework (>= 14.4.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Nalix.Runtime:
| Package | Downloads |
|---|---|
|
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. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 14.4.0 | 888 | 11/22/2026 |
| 14.3.10 | 142 | 11/19/2026 |
| 14.3.9 | 10,244 | 10/27/2026 |
| 14.3.8 | 631 | 10/26/2026 |
| 14.3.7 | 3,852 | 10/24/2026 |
| 14.3.6 | 112 | 10/24/2026 |
| 14.3.5 | 201 | 10/6/2026 |
| 14.3.4 | 111 | 10/6/2026 |
| 14.3.3 | 154 | 9/26/2026 |
| 14.3.2 | 126 | 9/26/2026 |
| 14.3.1 | 3,436 | 8/29/2026 |
| 14.3.0 | 684 | 8/27/2026 |
| 14.2.18 | 1,100 | 8/13/2026 |
| 14.2.17 | 1,512 | 8/11/2026 |
| 14.2.16 | 792 | 8/1/2026 |
| 14.2.15 | 186 | 7/31/2026 |
| 14.2.14 | 154 | 7/31/2026 |
| 14.2.13 | 171 | 7/31/2026 |
| 14.2.12 | 175 | 7/29/2026 |
| 14.2.11 | 162 | 7/28/2026 |
- Smart Dispatching: Implemented Weighted Round-Robin (DRR) in PacketDispatchChannel to ensure fair processing and eliminate priority starvation.
- Configurable Fairness: Added PriorityWeights to DispatchOptions, allowing fine-grained control over how urgent vs. background traffic is served.
- Zero-Allocation Hot-Path: Optimized MiddlewarePipeline and PacketContext for minimum heap allocation during high-frequency message processing.
- Advanced Resource Control: Improved concurrency management and synchronization primitives for stable execution under extreme load.