ThingsGatewayRuntime.Application
2.0.64
dotnet add package ThingsGatewayRuntime.Application --version 2.0.64
NuGet\Install-Package ThingsGatewayRuntime.Application -Version 2.0.64
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="ThingsGatewayRuntime.Application" Version="2.0.64" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ThingsGatewayRuntime.Application" Version="2.0.64" />
<PackageReference Include="ThingsGatewayRuntime.Application" />
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 ThingsGatewayRuntime.Application --version 2.0.64
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ThingsGatewayRuntime.Application, 2.0.64"
#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 ThingsGatewayRuntime.Application@2.0.64
#: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=ThingsGatewayRuntime.Application&version=2.0.64
#tool nuget:?package=ThingsGatewayRuntime.Application&version=2.0.64
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ThingsGatewayRuntime
工业物联网边缘网关平台,提供数据采集、设备管理、报警处理、规则引擎、远程部署等完整解决方案。
项目组成
核心运行时
- ThingsGatewayRuntime.Application - 网关运行时核心,提供数据采集、业务处理、规则引擎等功能
- ThingsGatewayRuntime.Admin - 管理模块,提供用户认证、权限管理、日志记录等功能
开发工具
- ThingsGatewayStudio - 开发环境后端服务,提供工程管理、脚本编译、代码补全等功能
- gateway-studio - 开发环境前端,基于 Vue 3 + Element Plus 构建的 Web 管理界面
运维工具
- ThingsGatewayRuntime.Watchdog - 看门狗程序,用于监控和管理运行时进程
编译工具
- ThingsGatewayStudio.Expressions - 表达式编译器
- ThingsGatewayStudio.RoslynCompletion - Roslyn 代码补全服务
- ThingsGatewayRuntime.ExpressionsGenerator - 表达式源码生成器
- ThingsGatewayRuntime.PluginsGenerator - 插件源码生成器
功能特性
数据采集
- 多协议支持:Modbus、OPC UA、MQTT、HTTP 等
- 多通道并发采集
- 设备状态监控和自动重连
- 变量读写和数据类型转换
业务处理
- 高性能数据缓存
- 实时报警检测和处理
- 可视化规则引擎
- 自定义脚本和表达式扩展
系统管理
- 主备冗余切换
- RESTful API 接口
- WebSocket 实时推送
- JWT 用户认证
- 完整日志系统
开发运维
- 工程管理和编译
- 代码智能补全
- 远程部署和监控
- 进程看门狗保护
技术栈
| 技术 | 版本 | 说明 |
|---|---|---|
| .NET | 8.0/10.0 | 后端运行时 |
| Vue | 3.5.x | 前端框架 |
| TypeScript | 5.7.x | 前端类型支持 |
| Element Plus | 2.9.x | UI 组件库 |
| TouchSocket | - | 网络通信 |
| FreeSql | - | ORM 框架 |
| Roslyn | - | 编译器服务 |
目录结构
ThingsGatewayRuntime/
├── src/ // 源代码
│ ├── ThingsGatewayRuntime.Admin/ // 管理模块
│ ├── ThingsGatewayRuntime.Application/ // 应用核心
├── studio/ // 开发工具
│ ├── ThingsGatewayStudio/ // 开发环境后端
│ ├── ThingsGatewayRuntime.Watchdog/ // 看门狗程序
│ ├── ThingsGatewayStudio.Expressions/ // 表达式编译
│ ├── ThingsGatewayStudio.RoslynCompletion/ // 代码补全
│ └── ThingsGatewayStudio.Model/ // 模型定义
├── web/ // 前端项目
│ └── gateway-studio/ // Vue 前端
├── auth/ // 认证授权
├── analyzer/ // 源码生成器
│ ├── ThingsGatewayRuntime.ExpressionsGenerator/
│ └── ThingsGatewayRuntime.PluginsGenerator/
├── benchmark/ // 性能测试
│ └── ThingsGatewayRuntime.Benchmark/
├── ThingsGatewayStudio.slnx // 解决方案文件
├── Directory.Build.props // 构建配置
└── NuGet.Config // NuGet 配置
快速开始
编译项目
dotnet build ThingsGatewayStudio.slnx -c Release
运行开发环境
- 启动 Studio 后端:
cd studio/ThingsGatewayStudio
dotnet run
- 启动前端:
cd web/gateway-studio
npm install
npm run dev
运行网关运行时
cd studio/ThingsGatewayStudio/RuntimeProject
dotnet run
运行看门狗
cd studio/ThingsGatewayRuntime.Watchdog
dotnet run
部署架构
┌─────────────────────────────────────────────────────────────┐
│ 开发环境 (Studio) │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ 前端 UI │───▶│ Studio API │───▶│ 编译服务 │ │
│ │ Vue 3 SPA │ │ ASP.NET │ │ Roslyn │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ │
└─────────────────────────────────────────────────────────────┘
│
│ 工程部署
▼
┌─────────────────────────────────────────────────────────────┐
│ 生产环境 (边缘网关) │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Watchdog │───▶│ Runtime │───▶│ 驱动插件 │ │
│ │ 进程监控 │ │ 运行时核心 │ │ 采集/业务 │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ │
│ │ │
│ │ 数据采集/处理 │
│ ▼ │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ 工业设备 / PLC / 传感器 │ │
│ └─────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
相关文档
- ThingsGatewayRuntime.Watchdog README - 看门狗程序文档
- ThingsGatewayStudio README - 开发环境后端文档
- gateway-studio README - 前端项目文档
- ThingsGatewayRuntime README - 运行时核心文档
许可证
本项目采用开源许可证,详见 LICENSE 文件。
资源
- 官方文档:https://thingsgateway.cn/
- Gitee 仓库:https://gitee.com/diego2098/ThingsGateway
- GitHub 仓库:https://github.com/kimdiego2098/ThingsGateway
- QQ 群:605534569
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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.
-
net10.0
- ThingsGatewayRuntime.Admin (>= 2.0.64)
- ThingsGatewayRuntime.Foundation (>= 2.0.64)
- TouchSocket.Mqtt (>= 4.2.7)
- TUtility.App (>= 2.0.7)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on ThingsGatewayRuntime.Application:
| Package | Downloads |
|---|---|
|
ThingsGatewayRuntime.Plugin
Package Description |
|
|
ThingsGatewayRuntime.NOAOTPlugin
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.