Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
e417f55
Merge branch 'marcschier/wot-01-core-types' into marcschier/wot-15-cl…
marcschier Jul 31, 2026
b55fff4
Merge branch 'marcschier/wot-09-xregistry-client' into marcschier/wot…
marcschier Jul 31, 2026
2803016
Add the WoT Connectivity registry client
marcschier Jul 31, 2026
d76e581
Restore WoT Connectivity test project coverage
marcschier Jul 31, 2026
2ea8965
Merge remote-tracking branch 'origin/marcschier/wot-10-wotcon-model' …
marcschier Jul 31, 2026
1405aae
Merge branch 'marcschier/wot-10-wotcon-model' into marcschier/wot-13-…
marcschier Jul 31, 2026
e5f9da3
Merge remote-tracking branch 'origin/marcschier/wot-10-wotcon-model' …
marcschier Jul 31, 2026
6b5d58d
Add the WoT Connectivity registry and its stores
marcschier Jul 31, 2026
c3a12ba
Add the fluent builder API the generated node managers require
marcschier Jul 31, 2026
729d7ff
Add the fluent builder API the generated node managers require
marcschier Jul 31, 2026
1c60fb6
Wire the data-type lookup into the DI node manager builder
marcschier Jul 31, 2026
442e023
Wire the data-type lookup into the DI node manager builder
marcschier Jul 31, 2026
cd04abc
Merge branch 'marcschier/wot-10-wotcon-model' into marcschier/wot-15-…
marcschier Jul 31, 2026
e72d784
Merge branch 'marcschier/wot-11-bindings-core' into marcschier/wot-13…
marcschier Jul 31, 2026
6ab4635
Fix WoT registry review issues
marcschier Jul 31, 2026
3cf4ada
Merge branch 'marcschier/wot-10-wotcon-model' into marcschier/wot-15-…
marcschier Jul 31, 2026
61c346e
Merge branch 'marcschier/wot-11-bindings-core' into marcschier/wot-13…
marcschier Jul 31, 2026
ed86073
Merge branch 'marcschier/wot-10-wotcon-model' into marcschier/wot-15-…
marcschier Jul 31, 2026
415da4c
Merge branch 'marcschier/wot-11-bindings-core' into marcschier/wot-13…
marcschier Jul 31, 2026
d35bb31
Use ImmutableDictionary.Empty instead of a collection expression
marcschier Aug 1, 2026
1e9c38c
Merge remote-tracking branch 'origin/marcschier/wot-05-lifecycle' int…
marcschier Aug 1, 2026
61c6544
Merge remote-tracking branch 'origin/marcschier/wot-01-core-types' in…
marcschier Aug 1, 2026
a3ff604
Materialize WoT Thing Descriptions into the server address space
marcschier Aug 1, 2026
689e194
Add WoT registry materialization tests
marcschier Aug 1, 2026
b2bf36f
Merge remote-tracking branch 'origin/marcschier/wot-15-client' into m…
marcschier Aug 1, 2026
61093c2
Merge branch 'marcschier/wot-11-bindings-core' into marcschier/wot-13…
marcschier Aug 1, 2026
9c1b75d
Merge branch 'marcschier/wot-13-registry' into marcschier/wot-14-mate…
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
67307b1
Cover the registry client error and configuration paths
marcschier Aug 1, 2026
3846fec
Merge branch 'marcschier/wot-10-wotcon-model' into marcschier/wot-15-…
marcschier Aug 1, 2026
9d44482
Merge branch 'marcschier/wot-11-bindings-core' into marcschier/wot-13…
marcschier Aug 1, 2026
45689f9
Merge branch 'marcschier/wot-13-registry' into marcschier/wot-14-mate…
marcschier Aug 1, 2026
22f7486
Merge branch 'marcschier/wot-05-lifecycle' into marcschier/wot-14-mat…
marcschier Aug 1, 2026
15aedb2
Merge branch 'marcschier/wot-01-core-types' into marcschier/wot-14-ma…
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
02473dd
Adapt WoT server methods to typed generated signatures
marcschier Aug 1, 2026
7a2074e
Merge branch 'marcschier/wot-13-registry' into marcschier/wot-14-mate…
marcschier Aug 1, 2026
507f750
Merge branch 'marcschier/wot-14-materialization' into marcschier/wot-…
marcschier Aug 1, 2026
b3b2ead
Merge wot-12-executors and retire IAtomicFileReplace
marcschier Aug 1, 2026
cd84294
Merge branch 'marcschier/wot-15-client' into marcschier/wot-14-materi…
marcschier Aug 1, 2026
237c7d0
Merge branch 'marcschier/wot-13-registry' into marcschier/wot-15-client
marcschier Aug 1, 2026
777e0a8
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
1387294
Merge branch 'marcschier/wot-15-client' into marcschier/wot-14-materi…
marcschier Aug 1, 2026
9bce9c4
Merge branch 'marcschier/wot-14-materialization' into marcschier/wot-…
marcschier Aug 1, 2026
099ea11
Merge branch 'marcschier/wot-12-executors' into marcschier/wot-13-reg…
marcschier Aug 1, 2026
e19f175
Merge branch 'marcschier/wot-13-registry' into marcschier/wot-15-client
marcschier Aug 1, 2026
cd61d63
Merge branch 'marcschier/wot-15-client' into marcschier/wot-14-materi…
marcschier Aug 1, 2026
b3f594d
Merge branch 'marcschier/wot-14-materialization' into marcschier/wot-…
marcschier Aug 1, 2026
588a285
Merge branch 'marcschier/wot-12-executors' into marcschier/wot-13-reg…
marcschier Aug 1, 2026
72d3395
Merge branch 'marcschier/wot-13-registry' into marcschier/wot-15-client
marcschier Aug 1, 2026
ce7dc6f
Merge branch 'marcschier/wot-15-client' into marcschier/wot-14-materi…
marcschier Aug 1, 2026
b9ddcb1
Merge branch 'marcschier/wot-14-materialization' into marcschier/wot-…
marcschier Aug 1, 2026
c2d5d16
Merge branch 'marcschier/wot-12-executors' into marcschier/wot-13-reg…
marcschier Aug 1, 2026
6b1a93a
Merge branch 'marcschier/wot-13-registry' into marcschier/wot-15-client
marcschier Aug 1, 2026
cdc7064
Merge branch 'marcschier/wot-15-client' into marcschier/wot-14-materi…
marcschier Aug 1, 2026
30d4259
Merge branch 'marcschier/wot-14-materialization' into marcschier/wot-…
marcschier Aug 1, 2026
7abd67c
Address WoT registry review feedback
marcschier Aug 1, 2026
36c3389
Address WoT materialization review feedback
marcschier Aug 1, 2026
3966144
Address WoT samples review feedback
marcschier Aug 1, 2026
3ab37a1
Merge remote-tracking branch 'origin/marcschier/wot-12-executors' int…
marcschier Aug 1, 2026
316e93e
Merge remote-tracking branch 'origin/marcschier/wot-13-registry' into…
marcschier Aug 1, 2026
f0a69ad
Merge remote-tracking branch 'origin/marcschier/wot-15-client' into m…
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
facc3b7
Merge remote-tracking branch 'origin/marcschier/wot-12-executors' int…
marcschier Aug 2, 2026
d614cc6
Merge remote-tracking branch 'origin/marcschier/wot-13-registry' into…
marcschier Aug 2, 2026
237730a
Merge remote-tracking branch 'origin/marcschier/wot-15-client' into m…
marcschier Aug 2, 2026
eaa7081
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 2, 2026
f60d0d0
Merge remote-tracking branch 'origin/marcschier/wot-12-executors' int…
marcschier Aug 3, 2026
3f38a12
Merge remote-tracking branch 'origin/marcschier/wot-13-registry' into…
marcschier Aug 3, 2026
571eaf4
Merge remote-tracking branch 'origin/marcschier/wot-15-client' into m…
marcschier Aug 3, 2026
598644f
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 3, 2026
ee1b4b9
Merge remote-tracking branch 'origin/marcschier/wot-12-executors' int…
marcschier Aug 3, 2026
980e346
Merge remote-tracking branch 'origin/marcschier/wot-13-registry' into…
marcschier Aug 3, 2026
eca062a
Merge remote-tracking branch 'origin/marcschier/wot-15-client' into m…
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
50c75d1
Merge remote-tracking branch 'origin/marcschier/wot-12-executors' int…
marcschier Aug 3, 2026
78b423f
Merge remote-tracking branch 'origin/marcschier/wot-13-registry' into…
marcschier Aug 3, 2026
7fc33ad
Merge remote-tracking branch 'origin/marcschier/wot-15-client' into m…
marcschier Aug 3, 2026
478110f
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 3, 2026
4347581
Merge remote-tracking branch 'origin/marcschier/wot-12-executors' int…
marcschier Aug 3, 2026
dc75d48
Merge remote-tracking branch 'origin/marcschier/wot-13-registry' into…
marcschier Aug 3, 2026
7498344
Merge remote-tracking branch 'origin/marcschier/wot-15-client' into m…
marcschier Aug 3, 2026
f093746
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 3, 2026
3ea8430
Merge remote-tracking branch 'origin/marcschier/wot-12-executors' int…
marcschier Aug 3, 2026
6653b40
Merge remote-tracking branch 'origin/marcschier/wot-13-registry' into…
marcschier Aug 3, 2026
54a6f73
Merge remote-tracking branch 'origin/marcschier/wot-15-client' into m…
marcschier Aug 3, 2026
7b00194
Treat the registry management minimum security mode as a floor
marcschier Aug 3, 2026
4fc98de
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 3, 2026
7f5cca0
Keep WoT materialization dry runs side-effect free
marcschier Aug 3, 2026
a9a1239
Merge remote-tracking branch 'origin/marcschier/wot-12-executors' int…
marcschier Aug 3, 2026
6aeca99
Merge remote-tracking branch 'origin/marcschier/wot-13-registry' into…
marcschier Aug 3, 2026
66fe980
Merge remote-tracking branch 'origin/marcschier/wot-15-client' into m…
marcschier Aug 3, 2026
5a1aca1
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 3, 2026
7c29fe5
Merge remote-tracking branch 'origin/marcschier/wot-12-executors' int…
marcschier Aug 3, 2026
d4e3ffb
Merge remote-tracking branch 'origin/marcschier/wot-13-registry' into…
marcschier Aug 3, 2026
7c24898
Merge remote-tracking branch 'origin/marcschier/wot-15-client' into m…
marcschier Aug 3, 2026
76498d8
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 3, 2026
20db0ad
Merge remote-tracking branch 'origin/marcschier/wot-12-executors' int…
marcschier Aug 4, 2026
eba74e5
Merge remote-tracking branch 'origin/marcschier/wot-13-registry' into…
marcschier Aug 4, 2026
c63d712
Merge remote-tracking branch 'origin/marcschier/wot-15-client' into m…
marcschier Aug 4, 2026
a3eae58
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 4, 2026
a238381
Fix WoT materialization shutdown ordering
marcschier Aug 4, 2026
9edb995
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 4, 2026
98a5070
Skip projection lifecycle removal during shutdown
marcschier Aug 4, 2026
b139d1a
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 4, 2026
ec9586e
Merge remote-tracking branch 'origin/marcschier/wot-12-executors' int…
marcschier Aug 4, 2026
4df8cbc
Merge remote-tracking branch 'origin/marcschier/wot-13-registry' into…
marcschier Aug 4, 2026
ab8c175
Merge remote-tracking branch 'origin/marcschier/wot-15-client' into m…
marcschier Aug 4, 2026
f1993c9
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 4, 2026
605dda4
Merge remote-tracking branch 'origin/marcschier/wot-12-executors' int…
marcschier Aug 4, 2026
07b4b83
Merge remote-tracking branch 'origin/marcschier/wot-13-registry' into…
marcschier Aug 4, 2026
33c2900
Merge remote-tracking branch 'origin/marcschier/wot-15-client' into m…
marcschier Aug 4, 2026
0377e13
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 4, 2026
3d6b808
Pass an explicit caller context to the NodeManager lifecycle
marcschier Aug 4, 2026
39f5042
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 4, 2026
cd5b72c
Pass an explicit caller context in the WoT live server tests
marcschier Aug 4, 2026
7ae2e9c
Merge remote-tracking branch 'origin/marcschier/wot-12-executors' int…
marcschier Aug 4, 2026
01df322
Merge remote-tracking branch 'origin/marcschier/wot-13-registry' into…
marcschier Aug 4, 2026
cb6d517
Merge remote-tracking branch 'origin/marcschier/wot-15-client' into m…
marcschier Aug 4, 2026
0726236
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 4, 2026
a3cb074
Restore WoT asset registry bridge (#4171)
marcschier Aug 4, 2026
89ebba8
Merge remote-tracking branch 'origin/marcschier/wot-12-executors' int…
marcschier Aug 5, 2026
9f4c9f8
Merge remote-tracking branch 'origin/marcschier/wot-13-registry' into…
marcschier Aug 5, 2026
6d7bd53
Merge remote-tracking branch 'origin/marcschier/wot-15-client' into m…
marcschier Aug 5, 2026
58f0f9f
Merge remote-tracking branch 'origin/marcschier/wot-14-materializatio…
marcschier Aug 5, 2026
e41c0e3
Merge remote-tracking branch 'origin/marcschier/wot-16-samples' into …
marcschier Aug 5, 2026
39f655f
[WotCon] Add the WoT Connectivity samples and complete the documentat…
marcschier Aug 5, 2026
b6ac567
[WotCon] Materialize WoT Thing Descriptions into the server address s…
marcschier Aug 5, 2026
3388cf5
[WotCon] Add the WoT Connectivity registry client (#4142)
marcschier Aug 5, 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 @@ -59,6 +59,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