Fora.Client
20261123.0.0
dotnet add package Fora.Client --version 20261123.0.0
NuGet\Install-Package Fora.Client -Version 20261123.0.0
<PackageReference Include="Fora.Client" Version="20261123.0.0" />
<PackageVersion Include="Fora.Client" Version="20261123.0.0" />
<PackageReference Include="Fora.Client" />
paket add Fora.Client --version 20261123.0.0
#r "nuget: Fora.Client, 20261123.0.0"
#:package Fora.Client@20261123.0.0
#addin nuget:?package=Fora.Client&version=20261123.0.0
#tool nuget:?package=Fora.Client&version=20261123.0.0
description: Quick start and API overview for the Fora Client library.
Fora.Client
Fora.Client is the canonical SDK for .NET federates connecting to an RTI via the IEEE 1516-2025 Federate Protocol. It provides a high-performance, asynchronous bridge between your federate logic and any HLA 4 compliant RTI.
Key Features
- Asynchronous API: Fully built on
async/awaitpatterns for non-blocking simulation logic. - Pluggable Transports: Native support for TCP, TLS, and WebSockets (WS/WSS) to fit any network environment.
- Resilient Session Model: Automatic Reconnect-and-Resume with unacknowledged message replay, ensuring zero data loss during transient network drops.
- Zero-Dependency Core: Lightweight and modular, bundled with all necessary HLA abstractions and encoding helpers.
- Callback Models:
CallbackModel.Immediatedelivers callbacks as they arrive;CallbackModel.Evokedonly insideEvokeCallbackAsync/EvokeMultipleCallbacksAsync(IEEE 1516.1-2025 §4.1, §4.2). - Structured Logging: Built-in integration with
Microsoft.Extensions.Logging; log lines name the classes and instances they show, and RTI exceptions are logged by severity. - Built-in Telemetry, Off by Default: assign a
TelemetryConfiguration(Fora.Telemetry) before connecting to record sends, callbacks and, optionally, the request/response service path; without one the client records nothing. See the Fora.Telemetry Programming Guide.
Use IForaInteger64TimeClient and the Int64 ambassador callbacks for exact HLAinteger64Time timestamps and grants. Pending calls can survive replay after a transport drop. Resume is bounded by ReconnectTimeout.
Supported HLA Service Groups
🏛️ Federation Management
- Connection, Join, Resign, and Disconnect workflows with full FP session support.
- Synchronization point registration and coordination.
- Federation Save & Restore: The save and restore services and callbacks of IEEE 1516.1-2025 §4.19 – §4.35, with their status responses and failure reasons.
- FOM modules sent with their content or as URLs (
FomModuleSource), an optional MIM, and joins with or without a federate name.
📢 Declaration Management
- Object and Interaction class publication and subscription.
- Support for hierarchy-aware subscriptions and HLA 4 advisory callbacks.
📦 Object Management
- Object instance registration, discovery, and lifecycle management.
- Attribute updates and Interaction sending (Best-effort & Reliable).
- Directed Interaction support and per-receiver attribute filtering.
🔑 Ownership Management
- Ownership Transfer: Full support for attribute ownership acquisition and divestiture (push/pull models).
- Ownership query services and unconditional divestiture support.
⏱️ Time Management
- Time regulation and constraint management in
HLAfloat64TimeandHLAinteger64Timefederations. UseIForaInteger64TimeClientand the…Int64Asynccallbacks onIFederateAmbassadorfor exact integer timestamps and intervals. - Time-stamped message sending (TSO) and causal delivery.
- Support for all advance requests (TAR, TARA, NMR, NMRA, FlushQueue) and message retraction.
🗺️ Data Distribution Management (DDM)
- Multi-dimensional region creation, modification, and deletion.
- Region association for attribute updates and interaction routing.
🛠️ Support Services
- Handle/Name Resolution: Bidirectional conversion for Object, Attribute, Interaction, and Parameter classes.
- Metadata Queries: Retrieve upper bounds for dimensions and the available dimensions of object and interaction classes.
- Transportation & Order: Query and manage transportation types (Reliable/Best-effort) and order types (Receive/Timestamp).
- Update rate queries and the advisory and reporting switch services.
Install
dotnet add package Fora.Client --version 20261123.0.0
Quick Start
Start a local Fora RTI with the fora-console tool (it listens on localhost:15164):
dotnet tool install -g Fora.Rti.Console
fora-console
Then connect a federate with the SDK:
using Fora.Client;
using Fora.Abstractions;
using Fora.Abstractions.Connection;
// 1. Create your Ambassador to receive callbacks
var ambassador = new MyFederateAmbassador();
// 2. Initialize and connect
await using var client = new ForaClient();
await client.ConnectAsync(ambassador, CallbackModel.Immediate, new RtiConfiguration
{
RtiAddress = "127.0.0.1:15164",
Transport = RtiTransportKind.Tcp
});
// 3. Join a federation: federate name, federate type, federation name
var handle = await client.JoinFederationExecutionAsync("MyFederate", "MyFederateType", "MyFederation");
Connecting with TLS or authorization
When the server exposes the TLS FP listener on 15165, select the TLS transport:
await using var client = new ForaClient();
await client.ConnectAsync(ambassador, CallbackModel.Immediate, new RtiConfiguration
{
RtiAddress = "localhost:15165",
Transport = RtiTransportKind.Tls
});
When the server enables the built-in HLAauthorizer, pass HLAplainTextPassword credentials:
await using var client = new ForaClient();
await client.ConnectAsync(ambassador, CallbackModel.Immediate, new RtiConfiguration
{
RtiAddress = "localhost:15164",
Transport = RtiTransportKind.Tcp,
Credentials = new HlaPlainTextPasswordCredentials("changeit")
});
HLAplainTextPassword credentials are clear text unless the FP connection is protected by TLS or a trusted private network.
Package Content
The package is a self-contained SDK containing:
Fora.Client.dll: The main SDK and protocol orchestrator.Fora.Abstractions.dll: Shared HLA interfaces and exception types.Fora.Encoding.dll: HLA-compliant data element encoders (IDataElement).Fora.Protocol.dll: IEEE 1516-2025 Protobuf contracts.
Version
The package follows the shared Fora family release version:
20261123.0.0
The runtime client version constant remains date-based for lightweight feature checks; the full package version is there for display:
var version = ForaClient.ForaClientVersion; // 20261123
var packageVersion = ForaClient.ForaClientPackageVersion; // 20261123.0.0
See [[Release Notes]].
For a full federate programmer guide, see [[ProgrammersManual]] under UserManual/SDKs/Fora.Client.
Support Fora
Fora is free. If it is useful in your work, you can support its development through GitHub Sponsors.
Disclaimer
Fora environment is a free academic research toolbox provided “as is” without warranty or guaranteed support. It is intended solely for research and educational use and is not suitable for production or mission-critical environments. Backward compatibility is not guaranteed. Users assume all risks associated with its use. Feedback may be submitted via the Contact page. Sponsorships and donations are voluntary and do not create any warranty, support or service obligation.
| 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. |
-
net10.0
- Fora.Abstractions (>= 20261123.0.0)
- Fora.Core (>= 20261123.0.0)
- Fora.Encoding (>= 20261123.0.0)
- Fora.Protocol (>= 20261123.0.0)
- Fora.Telemetry (>= 20261123.0.0)
- Google.Protobuf (>= 3.34.1)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 20261123.0.0 | 0 | 11/23/2026 |
| 20261004.0.0 | 152 | 10/4/2026 |
| 20260720.0.0 | 161 | 7/20/2026 |
| 20260705.0.0 | 134 | 7/4/2026 |
| 20260611.0.0 | 146 | 6/4/2026 |
| 20260603.0.0 | 142 | 6/3/2026 |
| 20260522.0.0 | 140 | 5/22/2026 |
| 20260503.0.0 | 488 | 5/3/2026 |
| 20260429.0.0 | 496 | 4/29/2026 |
| 20260426.0.0 | 505 | 4/25/2026 |
| 20260425.0.0 | 494 | 4/25/2026 |
| 20260423.4.0 | 510 | 4/23/2026 |
| 20260421.2.0 | 504 | 4/21/2026 |
| 20260420.1.0 | 494 | 4/20/2026 |
| 20260419.1.0 | 502 | 4/18/2026 |
| 20260418.0.0 | 501 | 4/18/2026 |
| 20260417.0.0 | 494 | 4/17/2026 |
20261123.0.0 - HLA 4 client with exact HLAinteger64Time services and callbacks, bounded FP reconnect and resume, and opt-in telemetry recording in Release builds.