Task-oriented reference · C# 3.3.2

CoAkka Runtime configuration · C#/.NET

Public C# types project the Core contract as .NET values. Use named arguments for intent, then read snapshots instead of reporting input preference.

Package and lifecycleCoAkka.Runtime 3.3.2 · net8.0
RuntimeHost.StartLocal
Short path for one local target.
RuntimeHost.Start
Explicit routes/network/transport. ConnectorOrchestrator is the compatibility facade.
await using
Prefer async shutdown to seal admission, wait admitted reads and join owners.
Handler bounds
256 handlers, 64 KiB UTF-8 labels; 64 managed asks. Saturation is a managed scheduling refusal, not a Core status.
Trimmed apps
Use source-generated JsonTypeInfo overloads or payload bytes.
Startup intentConnectorStartSpec
SystemName / NodeId
Logical app-host and unique runtime-owner identity.
Routes
Initial snapshot. RuntimeHost.LocalRoute(target) for Embedded.
QueueCapacity = 0
Omission selector; Core normalizes and reports accepted capacity.
StrictNoDrop = true
Explicit safe intent in the frozen ABI.
Generation
Monotonic route/control generation.
EnableMonitor = null
Omitted keeps Core default OFF; true/false is explicit intent.
Network
Omitted/Embedded for local work; explicit OutboundOnly/NetworkNode for peers.
Network, route and endpointRuntimeNetworkConfig · RuntimeRouteSpec
Embedded()
Local only, no listener.
OutboundOnly()
Remote caller without a listener.
NetworkNode(bindHost, bindPort, advertiseHost, advertisePort)
Bind/advertise are separate; the endpoint must be reachable by peers.
Target
Stable business address.
Endpoints
Candidate owners with host, port, weight and flags.
SingleOwner
One owner; WeightedRoundRobin uses weight; RendezvousHash uses a route key.
Weight
Relative selection weight, not retry/priority.

Routing reference · Failover/retry reference

Connections and securityRuntimeTcpConnectionStrategySpec · RuntimeTcpSecuritySpec
ConnectionStrategy = null
Omit the group for Core AUTO/current Multiplexing.
Mode
Explicit when supplying a spec; enum zero is PerExchange, not AUTO.
MaxConnections
Connection bound where mode/capability applies.
MaxRequestsPerConnection
Per-connection request retirement bound.
IdleTimeoutMs
Idle-retention bound.
Security.Mode
Plaintext/Tls/MutualTls; bundled Core 3.3 reports public TCP TLS/mTLS unavailable.
CredentialGeneration
Positive and increasing for same-mode reload.
CredentialId
Non-secret diagnostic ID.
CA/cert/key
The app owns file lifecycle; snapshots never return secret paths/material.

Connectivity/security contract.

File Lane and Stream LaneIndependent IDisposable owners
FileLane.OpenOwned
The exact receiver owner issues a grant; Sha256 returns size/digest.
WaitTransfer
Blocking; keep it off UI threads. Success is terminal + Completed + Ok.
StreamLane.OpenOwned
The publisher issues a single-admission grant.
Span<byte>
Borrowed writable source buffer; never retain it.
ReadOnlySpan<byte>
Borrowed consumer view; copy before retaining.
Callback root
The connector retains delegates until confirmed retirement; cancel alone does not retire.
Dispose()
Call from an external owner after terminal/forget, never from the callback itself.

Data-lane contract.

Read accepted/effective Core stateStartupConfig · RuntimeConfig · Health · Stats

Create Configuration.cs beside the project and select it with SampleFile.

Configuration.cs
using CoAkka.Runtime;

namespace CoAkkaPortal;

internal static class Configuration
{
    public static async Task Main()
    {
        const string target = "orders.quote";
        var startSpec = new ConnectorStartSpec(
            SystemName: "orders",
            NodeId: "config-csharp-1",
            Routes: [RuntimeHost.LocalRoute(target)],
            EnableMonitor: true);

        await using var runtime = RuntimeHost.Start(startSpec);
        var startup = runtime.StartupConfig();
        var config = runtime.RuntimeConfig();
        Console.WriteLine(
            $"generation={config.AppliedGeneration} " +
            $"queue_capacity={config.QueueCapacity} " +
            $"strict_no_drop={config.StrictNoDrop.ToString().ToLowerInvariant()} " +
            $"monitor={startup.MonitorEnabled.ToString().ToLowerInvariant()} " +
            $"state={config.RuntimeState}");
    }
}
Terminal
dotnet run -p:SampleFile=Configuration

Verified result

generation=1 queue_capacity=4096 strict_no_drop=true monitor=true state=Started
StartupConfig()
Accepted queue, execution, connection, I/O, Monitor and default groups.
RuntimeConfig()
Identity, generation, routes, state and transport bind facts.
RuntimeCapabilities()
Feature truth before advanced transport.
Health() / Stats()
Observed state and counters.

Requested, accepted, effective, observed.