RT.MesWeb.OpcUa 1.2.0

dotnet add package RT.MesWeb.OpcUa --version 1.2.0
                    
NuGet\Install-Package RT.MesWeb.OpcUa -Version 1.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RT.MesWeb.OpcUa" Version="1.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RT.MesWeb.OpcUa" Version="1.2.0" />
                    
Directory.Packages.props
<PackageReference Include="RT.MesWeb.OpcUa" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RT.MesWeb.OpcUa --version 1.2.0
                    
#r "nuget: RT.MesWeb.OpcUa, 1.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package RT.MesWeb.OpcUa@1.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=RT.MesWeb.OpcUa&version=1.2.0
                    
Install as a Cake Addin
#tool nuget:?package=RT.MesWeb.OpcUa&version=1.2.0
                    
Install as a Cake Tool

OpcUa 使用说明

安装

dotnet add package RT.MesWeb.OpcUa

目标框架:net8.0 / net10.0

概述

提供 MES 系统 OPC UA 服务访问的常用能力,包含 OPC UA 客户端与数据绑定层:

  • 客户端(RT.MesWeb.OpcUa.Client):ClientUtils 提供读/写/浏览/调用/事件订阅/历史数据/会话/服务发现等操作;OpcUaConnectionConfiguration 描述连接参数。
  • 数据绑定(RT.MesWeb.OpcUa.DataBinding):IUaConnectionManager / UaConnectionManager 管理连接,IUaConnection 表示一个连接;IUaNode 系列(UaVariable、UaObject、UaMethod、UaView 等)建模 OPC UA 节点。
  • 核心(RT.MesWeb.OpcUa.Core):UaResult<T> 系列统一封装操作结果。

依赖

依赖 RT.MesWeb.Framework。

快速开始

本包无 appsettings.json 配置节,连接参数通过 OpcUaConnectionConfiguration 编程式配置:

using RT.MesWeb.OpcUa.Client;
using RT.MesWeb.OpcUa.DataBinding;

var config = new OpcUaConnectionConfiguration
{
    ServerUri = "opc.tcp://localhost:4840",
    // AuthenticationType = UserTokenType.UserName,
    // UserName = "user",
    // Password = "password",
};

// 本包不提供 DI 扩展方法,自行实例化连接管理器即可(也可注册到自己的容器中)
var connectionManager = new UaConnectionManager();
IUaConnection connection = connectionManager.GetConnection(config);
// 使用 connection 进行节点读写、订阅等操作

详细 API 以 RT.MesWeb.OpcUa.DataBinding / RT.MesWeb.OpcUa.Client 命名空间下的接口定义为准。

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.2.0 97 11/2/2026
1.0.0 178 5/12/2026