Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
b2bf36f
Merge remote-tracking branch 'origin/marcschier/wot-15-client' into m…
marcschier Aug 1, 2026
35df526
Merge branch 'marcschier/wot-14-materialization' into marcschier/wot-…
marcschier Aug 1, 2026
4ce3d98
Merge branch 'marcschier/wot-12-executors' into marcschier/wot-16-sam…
marcschier Aug 1, 2026
7567c9e
Add the WoT Connectivity samples and complete the documentation
marcschier Aug 1, 2026
5c0006b
Add the remaining WoT binding and aggregation tests
marcschier Aug 1, 2026
1018d78
Cover the DI transfer service binding extensions
marcschier Aug 1, 2026
588799c
Merge branch 'marcschier/wot-14-materialization' into marcschier/wot-…
marcschier Aug 1, 2026
0845948
Merge branch 'marcschier/wot-15-client' into marcschier/wot-16-samples
marcschier Aug 1, 2026
95bead1
Merge branch 'marcschier/wot-12-executors' into marcschier/wot-16-sam…
marcschier Aug 1, 2026
507f750
Merge branch 'marcschier/wot-14-materialization' into marcschier/wot-…
marcschier Aug 1, 2026
cd84294
Merge branch 'marcschier/wot-15-client' into marcschier/wot-14-materi…
marcschier Aug 1, 2026
9e5c9c5
Merge branch 'marcschier/wot-14-materialization' into marcschier/wot-…
marcschier Aug 1, 2026
9bce9c4
Merge branch 'marcschier/wot-14-materialization' into marcschier/wot-…
marcschier Aug 1, 2026
b3f594d
Merge branch 'marcschier/wot-14-materialization' into marcschier/wot-…
marcschier Aug 1, 2026
b9ddcb1
Merge branch 'marcschier/wot-14-materialization' into marcschier/wot-…
marcschier Aug 1, 2026
30d4259
Merge branch 'marcschier/wot-14-materialization' into marcschier/wot-…
marcschier Aug 1, 2026
3966144
Address WoT samples review feedback
marcschier Aug 1, 2026
182d905
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 1, 2026
01d58cb
Allow loopback endpoints in the aggregation sample
marcschier Aug 2, 2026
eaa7081
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 2, 2026
598644f
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 3, 2026
27ba9cd
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 3, 2026
bb60d87
Align the new WoT documentation links
marcschier Aug 3, 2026
478110f
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 3, 2026
f093746
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 3, 2026
4fc98de
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 3, 2026
5a1aca1
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 3, 2026
76498d8
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions UA.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
<Project Path="samples/MinimalCalcServer/MinimalCalcServer.csproj" />
<Project Path="samples/MinimalClient/MinimalClient.csproj" />
<Project Path="samples/PumpDeviceIntegrationServer/PumpDeviceIntegrationServer.csproj" />
<Project Path="samples/WotCon/AggregationClient/AggregationClient.csproj" />
<Project Path="samples/WotCon/AggregationServer/AggregationServer.csproj" />
<Project Path="samples/WotCon/FlatTagServer/FlatTagServer.csproj" />
<Project Path="samples/MinimalRobotServer/MinimalRobotServer.csproj" />
<Project Path="samples/Quickstarts.Servers/Quickstarts.Servers.csproj" />
<Project Path="samples/RedundantClient/RedundantClient.csproj" />
Expand Down Expand Up @@ -281,6 +284,7 @@
<Project Path="tests/Opc.Ua.Types.Tests/Opc.Ua.Types.Tests.csproj" />
<Project Path="tests/Opc.Ua.WotCon.Tests/Opc.Ua.WotCon.Tests.csproj" />
<Project Path="tests/Opc.Ua.WotCon.Bindings.Tests/Opc.Ua.WotCon.Bindings.Tests.csproj" />
<Project Path="tests/Opc.Ua.WotCon.Samples.Tests/Opc.Ua.WotCon.Samples.Tests.csproj" />
</Folder>
<Folder Name="/tests/TestFramework/">
<Project Path="tests/Opc.Ua.Test.Common/Opc.Ua.Test.Common.csproj" />
Expand Down
3 changes: 3 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ Here is a list of available documentation for different topics:
* [NodeManagers](NodeManagers.md) - Overview of the server node-manager architecture, built-in managers (master, core, diagnostics/configuration), CoreNodeManager vs CustomNodeManager2 guidance, registration and runtime lifecycle rules, namespace metadata and historical-access reconciliation, and source-generated `AsyncCustomNodeManager` authoring with the fluent `INodeManagerBuilder` API. Includes NativeAOT single-file server guidance and samples such as [MinimalBoilerServer](../samples/MinimalBoilerServer) and [PumpDeviceIntegrationServer](../samples/PumpDeviceIntegrationServer).
* Runtime [NodeSets](RuntimeNodeSets.md) - Load one or more NodeSet2 XML documents into the server address space at startup without source generation. Covers file and stream sources, dependency ordering, parent-child browse-path resolution, fluent `Configure` callbacks, default namespace inference, and the default complex-type loading path. Use when the XML content changes independently of the server binary or for rapid prototyping.
* [WoT / NodeSet conversion](WoTNodeSetConversion.md) - `WotNodeSetConverter` readable mapping, preservation projections, and the WoT-to-NodeSet default/failure table.
* [WoT Connectivity](WoTConnectivity.md) - OPC 10100-1 asset connectivity, the WoT Connectivity 1.1 registry/client, dependency-closure materialization, and runtime NodeSet projection.
* [WoT protocol bindings](WotBindings.md) - The bindings that ship today (planner/executor architecture, bundled and separate packages, operation coverage, target mapping, lazy channels, generation lifetime) and the contributor guide for adding your own, with a complete memory binding, registration, diagnostics, tests, packaging, TFM, trimming, and NativeAOT guidance.
* [WoT aggregation sample](../samples/WotCon/README.md) - Two flat OPC UA sources aggregated into a runtime-loaded DI/Machinery/Pumps Pump model, including commands, Refresh, monitoring, replacement, troubleshooting, and NativeAOT publishing.
* [Device Integration (DI) developer guide](DeviceIntegration.md) - End-to-end documentation for the `Opc.Ua.Di*` library trio: fluent `IDeviceBuilder`, device sub-type extensions (`AddSoftware`, `AddBlock`, `AddConfigurableObject`, `AddLifetimeIndication`, `WithSupportInfo`), hosting integration (`AddOpcUaDi` / `ConfigureDevicesFor`), lock service, software-update package store, and client helpers (`DiLockClient`, `DiTopologyClient`, `SoftwareUpdateClient`). Includes a section enumerating supported OPC 10000-100 features against the spec.
* [OpenUSD](OpenUsd.md) — bridge an OPC UA address space to an OpenUSD stage, in two parts. **Part 1 — bindings**: the generic domain-agnostic `OpenUsdConnector` (discovers `Server/OpenUSD/Representations`, subscribes, composes, verifies stage/asset digests, replays history), the `Variant`-based `IUsdSink` with `UsdFileSink` / `MockUsdSink`, the fluent/DI `AddOpenUsdConnector` extensions + `OpenUsdConnectorFactory` / `OpenUsdConnectorOptions`, server-side `UsdAssetDelivery`, and the optional `--view` viewport. **Part 2 — scene materialization**: materializes a composed USD stage *inside* the address space so the prim tree is the node hierarchy — the `Opc.Ua.OpenUsdScene` companion model plus scene document model, `.usda` reader/writer and the §6.2 `UsdValueTypeMap` (USD roles as DataTypes subtyping their built-in), and `Opc.Ua.OpenUsdScene.Server` with `MaterializeUsdStage` / `ExportUsdStage`, unknown-type fallbacks, Mode-A live attributes, portable Cesium georeference dual-authoring, discovery and Part 1 binding-target resolution. (Both companion models are currently drafts.)
* [Robotics developer guide](Robotics.md) — the `Opc.Ua.Robotics` / `Opc.Ua.Robotics.Server` / `Opc.Ua.Robotics.Client` trio for OPC 40010 Robotics 1.02 over OPC 40001-1 IA and OPC 10000-100 DI: source-generated models, `AddRobotics` / `AddRoboticsModel` / `ConfigureRobotics(For)` hosting, `IRoboticsModelProvider` / `IRoboticsConfigurator` / `IRoboticsBuildContext`, validated fluent topology builders (`AddMotionDeviceSystemAsync` down to axes, power trains, motors, gears, drives, safety states, and task controls), semantic references, `ArrayOf<T>` snapshot contracts, and `RoboticsClient` discovery.
Expand Down
32 changes: 31 additions & 1 deletion docs/RuntimeNodeSets.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Use the [source-generated path](NodeManagers.md#source-generated-node-managers)

`AddRuntimeNodeSet` on `IOpcUaServerBuilder` remains the startup path: its factory is created before the server starts and its NodeSet is imported during `CreateAddressSpaceAsync`.

Running servers also expose `INodeManagerLifecycle`. Resolve it from dependency injection in a hosted server, or use `StandardServer.NodeManagerLifecycle` when constructing the server directly. The lifecycle provider can add, reload, and remove runtime NodeSets without restarting the server.
Running servers also expose `INodeManagerLifecycle`. Resolve it from dependency injection in a hosted server, or use `StandardServer.NodeManagerLifecycle` when constructing the server directly. The lifecycle provider can add, reload, shadow-reload, and remove runtime NodeSets without restarting the server.

```csharp
public sealed class ModelLoader(INodeManagerLifecycle lifecycle)
Expand Down Expand Up @@ -55,6 +55,36 @@ Each add returns an immutable `NodeManagerRegistration`, and reload returns the

The rules that apply to every NodeManager registered at runtime -- what happens to MonitoredItems, Browse continuation points, namespace indexes, DataTypes, and change notifications, and which NodeManagers may be reloaded at all -- are described once in [Registering NodeManagers](NodeManagers.md#registering-node-managers). Runtime NodeSets follow those rules, and the built-in runtime NodeSet manager already implements the `INodeManagerReloadParticipant` contract that reload requires.

### Shadow reload

`ShadowReloadRuntimeNodeSetAsync` (backed by `INodeManagerLifecycle.ShadowReloadAsync`) replaces a live registration the same way `ReloadRuntimeNodeSetAsync` does, but without the active-monitored-item guard:

```csharp
public async ValueTask ShadowReloadAsync(CancellationToken ct)
{
m_registration = await lifecycle.ShadowReloadRuntimeNodeSetAsync(
m_registration!,
new RuntimeNodeSetOptions
{
Sources = [RuntimeNodeSetSource.FromFile("Models/MyMachine.NodeSet2.xml")]
},
ct);
}
```

The replacement generation is prepared and published through the same transactional prepare/publish/commit/rollback path as `ReloadAsync`, so a failure during preparation, publication, or the routing switch leaves the current generation fully active and cleans up the replacement, exactly as a normal reload does. Once committed, every new service request is atomically routed to the replacement generation, including for namespaces the current and replacement generations share.

The current generation is not torn down immediately. It is moved to the same retired-generation bookkeeping used for an ordinary reload, but its existing monitored items and any request or continuation point that already captured it keep being served by it, unaffected by the routing switch. The retired generation is disposed automatically, without deleting any client subscription, once its monitored items and in-flight state drain; a later lifecycle operation (or shutdown) opportunistically retries that cleanup until it succeeds. `ShadowReloadAsync` returns the replacement `NodeManagerRegistration` immediately and invalidates the current handle for further lifecycle mutations, the same as `ReloadAsync`.

Use `ShadowReloadAsync` when a model update must take effect for new requests without waiting for existing subscriptions to unsubscribe first; use the fail-closed `ReloadAsync` when a stale generation must never remain reachable, even briefly, for already-open monitored items.

### Immediate reload

`ImmediateReloadRuntimeNodeSetAsync` (backed by `INodeManagerLifecycle.ImmediateReloadAsync`) performs the same atomic replacement but does not retain the previous generation until monitored items drain. After requests that already captured the old routing generation finish, every affected data-change monitored item is made publishable with `BadNodeIdUnknown`, event monitored items stop producing events, continuation points are invalidated, and the old NodeManager is disposed. The subscription and monitored-item records remain available so clients can receive the status and delete or recreate the affected items.

Use immediate reload only when continuity through the previous generation is not required. Durable monitored items are not eligible for immediate retirement because their terminal state would have to survive restart; choose shadow reload for any generation that owns them.


## Quick-start examples

### Single file
Expand Down
Loading
Loading