[opcuaclient] OpcUaClient — Discovery URL FindServers #358
Reference in New Issue
Block a user
Delete Branch "auto/opcuaclient/6"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Discovery URL
FindServersflow for OpcUaClient — prepends LDS-advertised endpoints to the failover candidate list.OpcUaClientDriverOptions.DiscoveryUrl(string?, default null) — opt-in. Doc-comment notes that FindServers requires SecurityMode=None on the discovery channel per OPC UA spec, even when the data channel is encrypted.OpcUaClientDriver.InitializeAsync— when set, opens an unsecuredDiscoveryClient, callsFindServersAsync+GetEndpointsAsync(per discovered server's discovery URL), filters endpoints to the configuredSecurityPolicy/SecurityMode, prepends discovered URLs to the failover candidate list.ResolveEndpointCandidates(opts, discovered)overload with case-insensitive de-dup so a URL appearing in both lists is only attempted once.Default
DiscoveryUrl=nullpreserves all prior behavior.Test plan
dotnet build src/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient— clean (0 / 0)dotnet test tests/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Tests— 133 / 133 passed (6 new inOpcUaClientFailoverTests: default-null, prepend-order, dedup, case-insensitive dedup, replace-default, no-discovery passthrough)🤖 Auto-generated by the Mode-B execution loop. Closes #278.
Closes #278