Lakona.Rpc.Server 0.16.1

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

Lakona.Rpc.Server

Server runtime implementation for Lakona.Rpc.

Install

dotnet add package Lakona.Rpc.Server

Documentation

Design boundary: https://bruce48x.github.io/Lakona/concepts/design-boundary/

Dependencies

  • Lakona.Rpc.Core
  • Microsoft.Extensions.Logging.Abstractions

Lakona.Rpc.Server has no hard dependency on concrete serializer, transport, or logging-provider implementations.

Includes

  • RpcServerHostBuilder
  • RpcServerHost
  • RpcGeneratedServiceBinder
  • runtime dispatch infrastructure used by generated service binders

Use RpcServerHostBuilder to compose serializer, transport, generated binders, and security in one place:

var builder = RpcServerHostBuilder.Create()
    .UseCommandLine(args)
    .UseSerializer(new MemoryPackRpcSerializer())
    .UseKeepAlive(TimeSpan.FromSeconds(15), TimeSpan.FromSeconds(45))
    .UseLimits(limits => limits.MaxActiveConnections = 10000)
    .UseAcceptor(new TcpConnectionAcceptor(20000));

await builder.RunAsync();

Pass an application-owned ILoggerFactory through UseLoggerFactory when logging is required. The runtime uses a null logger when no factory is supplied. See Logging for provider and lifetime guidance.

Request count, response status, and dispatch duration are emitted through the standard Lakona.Rpc.Server .NET Meter. Use LakonaRpcServerTelemetry.MeterName when configuring an OpenTelemetry metrics pipeline; the runtime does not own an exporter.

When the entry assembly contains code-generated AllServicesBinder, the builder binds it automatically.

MaxActiveConnections is a hard host limit. A newly accepted transport is closed before Session construction when the budget is full. Framework integrations can additionally use IRpcSessionAdmissionGate for protocol-level admission deadlines; application authorization remains in generated services. The host invokes IRpcSessionLifecycleObserver.OnSessionDisconnectedAsync only after Session resources and admission leases are released and the active connection slot is returned.

Extension Boundary

Server applications should not hand-write session loops or (serviceId, methodId) handler dictionaries. RpcSession and low-level handler delegates are runtime-internal; RpcServiceRegistry is generated-binder support API.

Custom transports and serializers are supported extension points. Implement ITransport, IRpcConnectionAcceptor, or IRpcSerializer, then pass those implementations into RpcServerHostBuilder.

KeepAlive

RpcServerHostBuilder.UseKeepAlive(...) enables connection-level idle timeout handling for accepted sessions.

  • The server automatically replies to client keepalive pings with pong.
  • When enabled on the host, each accepted connection also tracks idle time and disconnects sessions that remain inactive longer than the configured timeout.

Authentication And Authorization Boundary

Lakona.Rpc.Server is focused on RPC session management, transport integration, request dispatch, and connection-level concerns such as framing, keepalive, and transport security. Request-level authorization is not built into the server runtime by design.

See the canonical design boundary page for the production integration boundary:

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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Lakona.Rpc.Server:

Package Downloads
Lakona.Game.Server

Server-side actor, Hotfix, fixed cluster RPC, client RPC and HTTP hosting, session lifecycle, and reliable push infrastructure for Lakona.Game applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.16.1 83 8/17/2026
0.16.0 149 8/12/2026
Loading failed