# dathlin/opcuahelper architecture

> Architecture diagram of the GitHub repository dathlin/opcuahelper, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dathlin/opcuahelper
- Repository: https://github.com/dathlin/opcuahelper

## Overview

OpcUaHelper is a .NET OPC UA client library with a node-browsing UI, client examples, and a sample server. The documented user workflow is to browse a server for node identifiers, connect with an identity, then read or write values; the client also supports batch operations, subscriptions, history, attributes, and references. The graph includes the documented sample-server branch. Some source was not sampled, so uncertain internal links are omitted.

Main entry points: [`OpcUaHelper/OpcUaClient.cs`](https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper/OpcUaClient.cs) (OPC UA Client), [`OpcUaHelper/Forms/FormBrowseServer.cs`](https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper/Forms/FormBrowseServer.cs) (Node Browser), [`OpcUaHelper.NetCoreDemo/Program.cs`](https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper.NetCoreDemo/Program.cs) (Net Core Demo), [`OpcUaServerSample/ReferenceServerConfiguration.cs`](https://github.com/dathlin/opcuahelper/blob/master/OpcUaServerSample/ReferenceServerConfiguration.cs) (Server Configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browse["Server Browsing"]
  node_browseui["Node Browser"]
  node_discovery["Server Discovery"]
  node_connectselect["Connection Selection"]
  node_toolbrowser["Tool Browser<br/>[Browser.cs]"]
end

subgraph group_client["OPC UA Client"]
  node_client["OPC UA Client<br/>[OpcUaClient.cs]"]
  node_status["Status Events"]
  node_demo["Client Demo<br/>[Form1.cs]"]
  node_netcore["Net Core Demo<br/>[Program.cs]"]
  node_netframework["Framework Demo<br/>[Program.cs]"]
end

subgraph group_support["Client Support"]
  node_helpers["Client Utilities<br/>[ClientUtils.cs]"]
  node_formutils["Form Utilities<br/>[FormUtils.cs]"]
  node_filter["Filter Declarations"]
  node_exception["Exception Dialog<br/>[ExceptionDlg.cs]"]
end

subgraph group_server["Sample Server"]
  node_serverprogram["Server Sample<br/>[Program.cs]"]
  node_nodemanager["Node Manager"]
  node_serverconfig["Server Configuration"]
  node_namespaces["Namespace Constants<br/>[Namespaces.cs]"]
  node_referenceutils["Server Utilities"]
  node_referenceserver["Reference Server<br/>[ReferenceServer.cs]"]
end

node_user(("Engineer"))
node_server(("OPC UA Server"))

node_user -->|"browses nodes"| node_browseui
node_browseui -->|"initializes client"| node_client
node_browseui -->|"opens discovery"| node_discovery
node_browseui -->|"uses selection"| node_connectselect
node_browseui -->|"browses references"| node_formutils
node_user -->|"connects and reads"| node_client
node_client -->|"OPC UA requests"| node_server
node_demo -->|"connects and subscribes"| node_client
node_netcore -->|"connects and reads"| node_client
node_netcore -->|"handles status"| node_status
node_netframework -->|"connects and reads"| node_client
node_client -->|"emits status"| node_status
node_helpers -->|"shows errors"| node_exception
node_serverprogram -->|"handles errors"| node_exception
node_nodemanager -->|"creates configuration"| node_serverconfig
node_serverconfig -->|"uses namespace"| node_namespaces

click node_browseui "https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper/Forms/FormBrowseServer.cs"
click node_discovery "https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper/Forms/DiscoverServerDlg.cs"
click node_connectselect "https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper/Forms/FormConnectSelect.cs"
click node_toolbrowser "https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper.Tool/Browser.cs"
click node_client "https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper/OpcUaClient.cs"
click node_status "https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper/OpcUaStatusEventArgs.cs"
click node_demo "https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper.Demo/Form1.cs"
click node_netcore "https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper.NetCoreDemo/Program.cs"
click node_netframework "https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper.NetFrameworkDemo/Program.cs"
click node_helpers "https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper/ClientUtils.cs"
click node_formutils "https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper/FormUtils.cs"
click node_filter "https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper/FilterDeclaration.cs"
click node_exception "https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper/ExceptionDlg.cs"
click node_serverprogram "https://github.com/dathlin/opcuahelper/blob/master/OpcUaServerSample/Program.cs"
click node_nodemanager "https://github.com/dathlin/opcuahelper/blob/master/OpcUaServerSample/ReferenceNodeManager.cs"
click node_serverconfig "https://github.com/dathlin/opcuahelper/blob/master/OpcUaServerSample/ReferenceServerConfiguration.cs"
click node_namespaces "https://github.com/dathlin/opcuahelper/blob/master/OpcUaServerSample/Namespaces.cs"
click node_referenceutils "https://github.com/dathlin/opcuahelper/blob/master/OpcUaServerSample/ReferenceServerUtils.cs"
click node_referenceserver "https://github.com/dathlin/opcuahelper/blob/master/OpcUaServerSample/ReferenceServer.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_browseui,node_discovery,node_connectselect,node_toolbrowser toneBlue
class node_client,node_status,node_demo,node_netcore,node_netframework toneAmber
class node_helpers,node_formutils,node_filter,node_exception,node_server toneMint
class node_serverprogram,node_nodemanager,node_serverconfig,node_namespaces,node_referenceutils,node_referenceserver toneRose
class node_user toneIndigo
```

## Components

### Server Browsing

- [Node Browser](https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper/Forms/FormBrowseServer.cs): `OpcUaHelper/Forms/FormBrowseServer.cs`
- [Server Discovery](https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper/Forms/DiscoverServerDlg.cs): `OpcUaHelper/Forms/DiscoverServerDlg.cs`
- [Connection Selection](https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper/Forms/FormConnectSelect.cs): `OpcUaHelper/Forms/FormConnectSelect.cs`
- [Tool Browser](https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper.Tool/Browser.cs): `OpcUaHelper.Tool/Browser.cs`

### OPC UA Client

- [OPC UA Client](https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper/OpcUaClient.cs): `OpcUaHelper/OpcUaClient.cs`
- [Status Events](https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper/OpcUaStatusEventArgs.cs): `OpcUaHelper/OpcUaStatusEventArgs.cs`
- [Client Demo](https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper.Demo/Form1.cs): `OpcUaHelper.Demo/Form1.cs`
- [Net Core Demo](https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper.NetCoreDemo/Program.cs): `OpcUaHelper.NetCoreDemo/Program.cs`
- [Framework Demo](https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper.NetFrameworkDemo/Program.cs): `OpcUaHelper.NetFrameworkDemo/Program.cs`

### Client Support

- [Client Utilities](https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper/ClientUtils.cs): `OpcUaHelper/ClientUtils.cs`
- [Form Utilities](https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper/FormUtils.cs): `OpcUaHelper/FormUtils.cs`
- [Filter Declarations](https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper/FilterDeclaration.cs): `OpcUaHelper/FilterDeclaration.cs`
- [Exception Dialog](https://github.com/dathlin/opcuahelper/blob/master/OpcUaHelper/ExceptionDlg.cs): `OpcUaHelper/ExceptionDlg.cs`

### Sample Server

- [Server Sample](https://github.com/dathlin/opcuahelper/blob/master/OpcUaServerSample/Program.cs): `OpcUaServerSample/Program.cs`
- [Node Manager](https://github.com/dathlin/opcuahelper/blob/master/OpcUaServerSample/ReferenceNodeManager.cs): `OpcUaServerSample/ReferenceNodeManager.cs`
- [Server Configuration](https://github.com/dathlin/opcuahelper/blob/master/OpcUaServerSample/ReferenceServerConfiguration.cs): `OpcUaServerSample/ReferenceServerConfiguration.cs`
- [Namespace Constants](https://github.com/dathlin/opcuahelper/blob/master/OpcUaServerSample/Namespaces.cs): `OpcUaServerSample/Namespaces.cs`
- [Server Utilities](https://github.com/dathlin/opcuahelper/blob/master/OpcUaServerSample/ReferenceServerUtils.cs): `OpcUaServerSample/ReferenceServerUtils.cs`
- [Reference Server](https://github.com/dathlin/opcuahelper/blob/master/OpcUaServerSample/ReferenceServer.cs): `OpcUaServerSample/ReferenceServer.cs`

### Other components

- **Engineer**
- **OPC UA Server**

## Connections

- Engineer → Node Browser: browses nodes (evidence: `README.md`)
- Node Browser → OPC UA Client: initializes client (evidence: `OpcUaHelper/Forms/FormBrowseServer.cs`)
- Node Browser → Server Discovery: opens discovery (evidence: `OpcUaHelper/Forms/FormBrowseServer.cs`)
- Node Browser → Connection Selection: uses selection (evidence: `OpcUaHelper/Forms/FormBrowseServer.cs`)
- Node Browser → Form Utilities: browses references (evidence: `OpcUaHelper/Forms/FormBrowseServer.cs`)
- Engineer → OPC UA Client: connects and reads (evidence: `README.md`)
- OPC UA Client → OPC UA Server: OPC UA requests (evidence: `README.md`)
- Client Demo → OPC UA Client: connects and subscribes (evidence: `OpcUaHelper.Demo/Form1.cs`)
- Net Core Demo → OPC UA Client: connects and reads (evidence: `OpcUaHelper.NetCoreDemo/Program.cs`)
- Net Core Demo → Status Events: handles status (evidence: `OpcUaHelper.NetCoreDemo/Program.cs`)
- Framework Demo → OPC UA Client: connects and reads (evidence: `OpcUaHelper.NetFrameworkDemo/Program.cs`)
- OPC UA Client → Status Events: emits status (evidence: `OpcUaHelper/OpcUaClient.cs`)
- Client Utilities → Exception Dialog: shows errors (evidence: `OpcUaHelper/ClientUtils.cs`)
- Server Sample → Exception Dialog: handles errors (evidence: `OpcUaServerSample/Program.cs`)
- Node Manager → Server Configuration: creates configuration (evidence: `OpcUaServerSample/ReferenceNodeManager.cs`)
- Server Configuration → Namespace Constants: uses namespace (evidence: `OpcUaServerSample/ReferenceServerConfiguration.cs`)
