Nalix.Runtime 14.4.0

dotnet add package Nalix.Runtime --version 14.4.0
                    
NuGet\Install-Package Nalix.Runtime -Version 14.4.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="Nalix.Runtime" Version="14.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nalix.Runtime" Version="14.4.0" />
                    
Directory.Packages.props
<PackageReference Include="Nalix.Runtime" />
                    
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 Nalix.Runtime --version 14.4.0
                    
#r "nuget: Nalix.Runtime, 14.4.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 Nalix.Runtime@14.4.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=Nalix.Runtime&version=14.4.0
                    
Install as a Cake Addin
#tool nuget:?package=Nalix.Runtime&version=14.4.0
                    
Install as a Cake Tool

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

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.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed

- 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.